summaryrefslogtreecommitdiff
path: root/ext/psych
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-14 16:58:50 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-14 16:58:50 +0000
commit0b8f727d7b3cd162ccba570d17ebf1ae72bd120a (patch)
treea926979059d136d99898dc751b13c83e16eeaa6d /ext/psych
parenta6df3a98abb49398ffcaeef0af35a37e27e9d411 (diff)
changing variable name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych')
-rw-r--r--ext/psych/lib/psych.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
index 7d7d2bf..66a0641 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