diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/core_ext.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb index 2ad75e1..4a04c2d 100644 --- a/lib/psych/core_ext.rb +++ b/lib/psych/core_ext.rb @@ -30,6 +30,7 @@ class Module alias :yaml_as :psych_yaml_as end +if defined?(::IRB) module Kernel def psych_y *objects puts Psych.dump_stream(*objects) @@ -38,3 +39,4 @@ module Kernel alias y psych_y private :y end +end |