summaryrefslogtreecommitdiff
path: root/ext/psych/lib/psych.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/psych/lib/psych.rb')
-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 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