diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2009-11-13 16:19:27 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2009-11-13 16:19:27 -0800 |
commit | 59f905bc00da88a6cb4d0edf73aa5b8201124bd1 (patch) | |
tree | 675f395046b998c28bbfb91a3842a59d15d50300 /lib/psych.rb | |
parent | ff397b194e22a9709432f6ed36e582531faf3eac (diff) | |
download | psych-59f905bc00da88a6cb4d0edf73aa5b8201124bd1.zip |
testing strings along with binary strings
Diffstat (limited to 'lib/psych.rb')
-rw-r--r-- | lib/psych.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/psych.rb b/lib/psych.rb index 9250a2c..df28ba0 100644 --- a/lib/psych.rb +++ b/lib/psych.rb @@ -42,8 +42,10 @@ module Psych ### # Dump object +o+ to a YAML string - def self.dump o - o.to_yaml + def self.dump o, options = {} + visitor = Psych::Visitors::YASTBuilder.new options + visitor.accept o + visitor.tree.to_yaml end ### |