ruby-changes:13321
From: ryan <ko1@a...>
Date: Fri, 25 Sep 2009 06:05:44 +0900 (JST)
Subject: [ruby-changes:13321] Ruby:r25084 (trunk): Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc processing
ryan 2009-09-25 06:05:35 +0900 (Fri, 25 Sep 2009) New Revision: 25084 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25084 Log: Fixed heredoc to play with emacs better. Added :startdoc: to fix broken rdoc processing Modified files: trunk/lib/yaml/tag.rb Index: lib/yaml/tag.rb =================================================================== --- lib/yaml/tag.rb (revision 25083) +++ lib/yaml/tag.rb (revision 25084) @@ -58,7 +58,7 @@ # taguris. def yaml_as( tag, sc = true ) verbose, $VERBOSE = $VERBOSE, nil - class_eval <<-"end;", __FILE__, __LINE__+1 + class_eval <<-"END", __FILE__, __LINE__+1 attr_writer :taguri def taguri if respond_to? :to_yaml_type @@ -73,7 +73,7 @@ end end def self.yaml_tag_subclasses?; #{ sc ? 'true' : 'false' }; end - end; + END YAML::tag_class tag, self ensure $VERBOSE = verbose @@ -88,4 +88,5 @@ def yaml_tag_read_class( name ) name end + # :startdoc: end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/