diff options
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 ### |