diff options
author | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-17 02:28:48 +0000 |
---|---|---|
committer | tenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-17 02:28:48 +0000 |
commit | 4e57f4e1826ff6f1f3b3c3ffb78132b448b732f9 (patch) | |
tree | 3e5bdaadd1820c6c045cca9fdc0ba624ca17ad0a /ext/psych/lib/psych/core_ext.rb | |
parent | 5bab43401841264a2651652f69e1f76d78dce0d4 (diff) |
* 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
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/core_ext.rb')
-rw-r--r-- | ext/psych/lib/psych/core_ext.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/ext/psych/lib/psych/core_ext.rb b/ext/psych/lib/psych/core_ext.rb index 4a04c2d128..9c8134da7e 100644 --- a/ext/psych/lib/psych/core_ext.rb +++ b/ext/psych/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 |