diff options
author | Jeremy Evans <code@jeremyevans.net> | 2019-08-24 17:16:11 -0700 |
---|---|---|
committer | aycabta <aycabta@gmail.com> | 2019-08-27 00:10:34 +0900 |
commit | caeafbe8252d13624a16acac703e4d04fcb19062 (patch) | |
tree | f78798cd93382004762aedb1c3ef5c3e8fee29bb | |
parent | ccc5b22a7f4302a286cb16a797e8dccf422e8279 (diff) | |
download | ruby-caeafbe8252d13624a16acac703e4d04fcb19062.tar.gz |
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.
-rw-r--r-- | lib/irb/workspace.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb index 2bbd5cf9ec..595e654f07 100644 --- a/lib/irb/workspace.rb +++ b/lib/irb/workspace.rb @@ -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) |