diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 09:52:56 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2013-05-14 09:52:56 -0700 |
commit | aa4a9b436e776dda9600bf526059a15368aacac0 (patch) | |
tree | 4cb6fb508792081d90dfff378e86eacf3b352d4f /lib/psych.rb | |
parent | 1f40f6398c0f4f78ba8effea1b1e712e5632dc2a (diff) | |
parent | ed7252036155fd7cca9c73a5d8a3e55dd37bdf08 (diff) | |
download | psych-aa4a9b436e776dda9600bf526059a15368aacac0.zip |
Merge pull request #131 from sheerun/fix/naming
Do not use one-letter variables
Diffstat (limited to 'lib/psych.rb')
-rw-r--r-- | lib/psych.rb | 6 |
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 |