Bug #5776 » 0001-make-top-level-methods-defined-in-IRB-private.patch
lib/irb/workspace.rb | ||
---|---|---|
@binding = BINDING_QUEUE.pop
|
||
when 3 # binging in function on TOPLEVEL_BINDING(default)
|
||
@binding = eval("def irb_binding; binding; end; irb_binding",
|
||
@binding = eval("def irb_binding; private; binding; end; irb_binding",
|
||
TOPLEVEL_BINDING,
|
||
__FILE__,
|
||
__LINE__ - 3)
|