summaryrefslogtreecommitdiff
path: root/lib/psych/y.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-11-16 18:30:14 -0800
committerAaron Patterson <aaron.patterson@gmail.com>2012-11-16 18:30:14 -0800
commit4c724549f98317e098502a04162d518d25df7aea (patch)
tree43763dc3568560b38accc5112811898c2c78d980 /lib/psych/y.rb
parent920cb81f6c6d9ce57c51a6df8fdc99b0d00f4c3a (diff)
downloadpsych-4c724549f98317e098502a04162d518d25df7aea.tar.gz
* ext/psych/lib/psych/core_ext.rb: move Kernel#y so that it can
manually be required as 'psych/y'. * ext/psych/lib/psych/y.rb: ditto r37694
Diffstat (limited to 'lib/psych/y.rb')
-rw-r--r--lib/psych/y.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/psych/y.rb b/lib/psych/y.rb
new file mode 100644
index 0000000..f20d2e2
--- /dev/null
+++ b/lib/psych/y.rb
@@ -0,0 +1,7 @@
+module Kernel
+ def y *objects
+ puts Psych.dump_stream(*objects)
+ end
+ private :y
+end
+