diff options
Diffstat (limited to 'lib/puppet/util/monkey_patches.rb')
-rw-r--r-- | lib/puppet/util/monkey_patches.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/puppet/util/monkey_patches.rb b/lib/puppet/util/monkey_patches.rb index 7ce1ccc1c..05d319356 100644 --- a/lib/puppet/util/monkey_patches.rb +++ b/lib/puppet/util/monkey_patches.rb @@ -1,4 +1,5 @@ Process.maxgroups = 1024 + module RDoc def self.caller(skip=nil) in_gem_wrapper = false @@ -7,3 +8,27 @@ module RDoc } end end + + +require "yaml" +require "puppet/util/zaml.rb" + +class Symbol + def to_zaml(z) + z.emit("!ruby/sym ") + to_s.to_zaml(z) + end +end + +class Object + def to_yaml + ZAML.dump(self) + end +end + +def YAML.dump(*args) + ZAML.dump(*args) +end + + + |