diff options
-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 |