1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

prelude.rb: suppress redefinition warnings

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60952 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2017-12-01 03:54:49 +00:00
parent 44320c5b8d
commit 5761093ee1
2 changed files with 6 additions and 1 deletions

View file

@ -703,7 +703,6 @@ end
class Binding
# :nodoc:
undef irb if method_defined?(:irb)
def irb
IRB.setup(eval("__FILE__"))
workspace = IRB::WorkSpace.new(self)

View file

@ -140,6 +140,9 @@ class Binding
require 'irb'
irb
end
# suppress redefinition warning
alias irb irb # :nodoc:
end
module Kernel
@ -150,4 +153,7 @@ module Kernel
require 'pp'
pp(*objs)
end
# suppress redefinition warning
alias pp pp # :nodoc:
end