diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-28 12:10:13 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-03-28 12:10:13 -0700 |
commit | b051cf80bcafa6776fe3e3ac4b230c18bea3e95b (patch) | |
tree | 32f8b019ca7917ca18b68cc706a443f9a8339dac /lib | |
parent | 23ce7d0172aeefdf49073fb344ece5d5033789fb (diff) | |
download | psych-b051cf80bcafa6776fe3e3ac4b230c18bea3e95b.zip |
* lib/psych/core_ext.rb: adding Kernel#y
Diffstat (limited to 'lib')
-rw-r--r-- | lib/psych/core_ext.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb index f7c396d..7425d50 100644 --- a/lib/psych/core_ext.rb +++ b/lib/psych/core_ext.rb @@ -8,3 +8,9 @@ class Object end alias :to_yaml :psych_to_yaml end + +module Kernel + def y *objects + puts Psych.dump_stream(*objects) + end +end |