summaryrefslogtreecommitdiff
path: root/lib/irb/workspace.rb
diff options
context:
space:
mode:
authorJeremy Evans <code@jeremyevans.net>2019-08-24 17:16:11 -0700
committeraycabta <aycabta@gmail.com>2019-08-27 00:10:34 +0900
commitcaeafbe8252d13624a16acac703e4d04fcb19062 (patch)
treef78798cd93382004762aedb1c3ef5c3e8fee29bb /lib/irb/workspace.rb
parentccc5b22a7f4302a286cb16a797e8dccf422e8279 (diff)
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.
Diffstat (limited to 'lib/irb/workspace.rb')
-rw-r--r--lib/irb/workspace.rb2
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)