mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02: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:
parent
44320c5b8d
commit
5761093ee1
2 changed files with 6 additions and 1 deletions
|
@ -703,7 +703,6 @@ end
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
# :nodoc:
|
# :nodoc:
|
||||||
undef irb if method_defined?(:irb)
|
|
||||||
def irb
|
def irb
|
||||||
IRB.setup(eval("__FILE__"))
|
IRB.setup(eval("__FILE__"))
|
||||||
workspace = IRB::WorkSpace.new(self)
|
workspace = IRB::WorkSpace.new(self)
|
||||||
|
|
|
@ -140,6 +140,9 @@ class Binding
|
||||||
require 'irb'
|
require 'irb'
|
||||||
irb
|
irb
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# suppress redefinition warning
|
||||||
|
alias irb irb # :nodoc:
|
||||||
end
|
end
|
||||||
|
|
||||||
module Kernel
|
module Kernel
|
||||||
|
@ -150,4 +153,7 @@ module Kernel
|
||||||
require 'pp'
|
require 'pp'
|
||||||
pp(*objs)
|
pp(*objs)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# suppress redefinition warning
|
||||||
|
alias pp pp # :nodoc:
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue