mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
suppress redefinition warnings
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7f09b5e9da
commit
9a83922b66
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ EOF
|
||||||
@binding = BINDING_QUEUE.pop
|
@binding = BINDING_QUEUE.pop
|
||||||
|
|
||||||
when 3 # binding in function on TOPLEVEL_BINDING(default)
|
when 3 # binding in function on TOPLEVEL_BINDING(default)
|
||||||
@binding = eval("def irb_binding; private; binding; end; irb_binding",
|
@binding = eval("self.class.remove_method(:irb_binding) if defined?(irb_binding); def irb_binding; private; binding; end; irb_binding",
|
||||||
TOPLEVEL_BINDING,
|
TOPLEVEL_BINDING,
|
||||||
__FILE__,
|
__FILE__,
|
||||||
__LINE__ - 3)
|
__LINE__ - 3)
|
||||||
|
|
Loading…
Add table
Reference in a new issue