summaryrefslogtreecommitdiff
path: root/lib/psych.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:23:42 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2010-04-24 15:23:42 -0700
commitc69c270f19f40e6e7e12905bfeaa03ce977b7ec2 (patch)
tree947a23eec0934464b6a084278cdd0aae5e5f7cd6 /lib/psych.rb
parent700a359dc7a8d33e76ffdb31050183353a5cfd4b (diff)
downloadpsych-c69c270f19f40e6e7e12905bfeaa03ce977b7ec2.zip
removing unused code
Diffstat (limited to 'lib/psych.rb')
-rw-r--r--lib/psych.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych.rb b/lib/psych.rb
index 59f9712..6c892c5 100644
--- a/lib/psych.rb
+++ b/lib/psych.rb
@@ -182,7 +182,7 @@ module Psych
###
# Dump Ruby object +o+ to a JSON string.
def self.to_json o
- visitor = Psych::Visitors::JSONTree.new(:json => true)
+ visitor = Psych::Visitors::JSONTree.new
visitor << o
visitor.tree.to_yaml
end