From 0b8f727d7b3cd162ccba570d17ebf1ae72bd120a Mon Sep 17 00:00:00 2001 From: tenderlove Date: Tue, 14 May 2013 16:58:50 +0000 Subject: changing variable name git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ext/psych/lib/psych.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ext/psych/lib/psych.rb') diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb index 7d7d2bfb00..66a0641f39 100644 --- a/ext/psych/lib/psych.rb +++ b/ext/psych/lib/psych.rb @@ -375,10 +375,10 @@ module Psych 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 -- cgit v1.2.3