mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Move private call without arguments inside method
This code did not have the desired effect. I'm not sure if irb_binding is supposed to be private or not. If not, the private call can just be removed.
This commit is contained in:
parent
ccc5b22a7f
commit
caeafbe825
1 changed files with 1 additions and 1 deletions
|
@ -49,7 +49,7 @@ EOF
|
|||
@binding = BINDING_QUEUE.pop
|
||||
|
||||
when 3 # binding in function on TOPLEVEL_BINDING(default)
|
||||
@binding = eval("self.class.send(:remove_method, :irb_binding) if defined?(irb_binding); def irb_binding; private; binding; end; irb_binding",
|
||||
@binding = eval("self.class.send(:remove_method, :irb_binding) if defined?(irb_binding); private; def irb_binding; binding; end; irb_binding",
|
||||
TOPLEVEL_BINDING,
|
||||
__FILE__,
|
||||
__LINE__ - 3)
|
||||
|
|
Loading…
Reference in a new issue