[前][次][番号順一覧][スレッド一覧]

ruby-changes:13979

From: ryan <ko1@a...>
Date: Mon, 16 Nov 2009 07:49:44 +0900 (JST)
Subject: [ruby-changes:13979] Ruby:r25787 (ruby_1_8): Fixed rdoc errors. Made heredoc more obvious

ryan	2009-11-16 07:49:34 +0900 (Mon, 16 Nov 2009)

  New Revision: 25787

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=25787

  Log:
    Fixed rdoc errors. Made heredoc more obvious

  Modified files:
    branches/ruby_1_8/lib/yaml/tag.rb

Index: ruby_1_8/lib/yaml/tag.rb
===================================================================
--- ruby_1_8/lib/yaml/tag.rb	(revision 25786)
+++ ruby_1_8/lib/yaml/tag.rb	(revision 25787)
@@ -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/

[前][次][番号順一覧][スレッド一覧]