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
48 48
	  @binding = BINDING_QUEUE.pop
49 49

  
50 50
	when 3	# binging in function on TOPLEVEL_BINDING(default)
51
	  @binding = eval("def irb_binding; binding; end; irb_binding",
51
	  @binding = eval("def irb_binding; private; binding; end; irb_binding",
52 52
		      TOPLEVEL_BINDING,
53 53
		      __FILE__,
54 54
		      __LINE__ - 3)
55
-