summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-05-14 09:52:56 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-05-14 09:52:56 -0700
commitaa4a9b436e776dda9600bf526059a15368aacac0 (patch)
tree4cb6fb508792081d90dfff378e86eacf3b352d4f /lib
parent1f40f6398c0f4f78ba8effea1b1e712e5632dc2a (diff)
parented7252036155fd7cca9c73a5d8a3e55dd37bdf08 (diff)
downloadpsych-aa4a9b436e776dda9600bf526059a15368aacac0.tar.gz
Merge pull request #131 from sheerun/fix/naming
Do not use one-letter variables
Diffstat (limited to 'lib')
-rw-r--r--lib/psych.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index 7d7d2bf..66a0641 100644
--- a/lib/psych.rb
+++ b/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