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

ruby-changes:18910

From: tenderlove <ko1@a...>
Date: Tue, 22 Feb 2011 03:09:35 +0900 (JST)
Subject: [ruby-changes:18910] Ruby:r30935 (trunk): should have used anchor, not oid

tenderlove	2011-02-22 03:09:27 +0900 (Tue, 22 Feb 2011)

  New Revision: 30935

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

  Log:
    should have used anchor, not oid

  Modified files:
    trunk/ext/psych/lib/psych/visitors/yaml_tree.rb

Index: ext/psych/lib/psych/visitors/yaml_tree.rb
===================================================================
--- ext/psych/lib/psych/visitors/yaml_tree.rb	(revision 30934)
+++ ext/psych/lib/psych/visitors/yaml_tree.rb	(revision 30935)
@@ -74,8 +74,8 @@
           oid         = target.object_id
           node        = @st[oid]
           anchor      = oid.to_s
-          node.anchor = oid
-          return @emitter.alias oid
+          node.anchor = anchor
+          return @emitter.alias anchor
         end
 
         if target.respond_to?(:to_yaml)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

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