summaryrefslogtreecommitdiff
path: root/lib/psych/core_ext.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/core_ext.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/core_ext.rb')
-rw-r--r--lib/psych/core_ext.rb9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/psych/core_ext.rb b/lib/psych/core_ext.rb
index 4a04c2d..9c8134d 100644
--- a/lib/psych/core_ext.rb
+++ b/lib/psych/core_ext.rb
@@ -31,12 +31,5 @@ class Module
end
if defined?(::IRB)
-module Kernel
- def psych_y *objects
- puts Psych.dump_stream(*objects)
- end
- remove_method :y rescue nil
- alias y psych_y
- private :y
-end
+ require 'psych/y'
end