зеркало из https://github.com/github/ruby.git
* ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
in order to stop method pollution. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34914 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
c46bdadb84
Коммит
62ffffbe25
|
@ -1,3 +1,8 @@
|
|||
Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
|
||||
|
||||
* ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
|
||||
in order to stop method pollution.
|
||||
|
||||
Tue Mar 6 01:34:19 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* parse.y (block_call): rules for block_call after block_call.
|
||||
|
|
|
@ -30,6 +30,7 @@ class Module
|
|||
alias :yaml_as :psych_yaml_as
|
||||
end
|
||||
|
||||
if defined?(::IRB)
|
||||
module Kernel
|
||||
def psych_y *objects
|
||||
puts Psych.dump_stream(*objects)
|
||||
|
@ -38,3 +39,4 @@ module Kernel
|
|||
alias y psych_y
|
||||
private :y
|
||||
end
|
||||
end
|
||||
|
|
Загрузка…
Ссылка в новой задаче