Project

General

Profile

Bug #5776 » 0001-make-top-level-methods-defined-in-IRB-private.patch

davidbalbert (David Albert), 06/27/2012 08:06 AM

View differences:

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)
    (1-1/1)