diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 16:58:50 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-05-14 16:58:50 +0000 |
commit | 0b8f727d7b3cd162ccba570d17ebf1ae72bd120a (patch) | |
tree | a926979059d136d99898dc751b13c83e16eeaa6d /ext | |
parent | a6df3a98abb49398ffcaeef0af35a37e27e9d411 (diff) | |
download | ruby-0b8f727d7b3cd162ccba570d17ebf1ae72bd120a.tar.gz |
changing variable name
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40748 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/psych/lib/psych.rb | 6 |
1 files changed, 3 insertions, 3 deletions
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 |