ruby-changes:28696
From: tenderlove <ko1@a...>
Date: Wed, 15 May 2013 01:59:01 +0900 (JST)
Subject: [ruby-changes:28696] tenderlove:r40748 (trunk): changing variable name
tenderlove 2013-05-15 01:58:50 +0900 (Wed, 15 May 2013) New Revision: 40748 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=40748 Log: changing variable name Modified files: trunk/ext/psych/lib/psych.rb Index: ext/psych/lib/psych.rb =================================================================== --- ext/psych/lib/psych.rb (revision 40747) +++ ext/psych/lib/psych.rb (revision 40748) @@ -375,10 +375,10 @@ module Psych https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych.rb#L375 end ### - # Dump Ruby object +o+ to a JSON string. - def self.to_json o + # Dump Ruby +object+ to a JSON string. + def self.to_json object visitor = Psych::Visitors::JSONTree.new - visitor << o + visitor << object visitor.tree.yaml end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/