From 59f905bc00da88a6cb4d0edf73aa5b8201124bd1 Mon Sep 17 00:00:00 2001 From: Aaron Patterson Date: Fri, 13 Nov 2009 16:19:27 -0800 Subject: testing strings along with binary strings --- lib/psych.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/psych.rb') 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 ### -- cgit v1.2.3