diff options
Diffstat (limited to 'ruby_2_2/ext/psych/lib/psych/y.rb')
-rw-r--r-- | ruby_2_2/ext/psych/lib/psych/y.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/ruby_2_2/ext/psych/lib/psych/y.rb b/ruby_2_2/ext/psych/lib/psych/y.rb new file mode 100644 index 0000000000..d0e049d4e5 --- /dev/null +++ b/ruby_2_2/ext/psych/lib/psych/y.rb @@ -0,0 +1,9 @@ +module Kernel + ### + # An alias for Psych.dump_stream meant to be used with IRB. + def y *objects + puts Psych.dump_stream(*objects) + end + private :y +end + |