ruby-changes:26546
From: keiju <ko1@a...>
Date: Tue, 25 Dec 2012 20:21:29 +0900 (JST)
Subject: [ruby-changes:26546] keiju:r38597 (trunk): * lib/irb/workspace.rb: define method to private on top-level irb
keiju 2012-12-25 20:21:19 +0900 (Tue, 25 Dec 2012) New Revision: 38597 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=38597 Log: * lib/irb/workspace.rb: define method to private on top-level irb [Bug #5776]. Patch by davidbalbert. Modified files: trunk/ChangeLog trunk/lib/irb/workspace.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 38596) +++ ChangeLog (revision 38597) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Tue Dec 25 19:22:17 2012 Keiju Ishitsuka <keiju@i...> + + * lib/irb/workspace.rb: define method to private on top-level irb + [Bug #5776]. Patch by davidbalbert. + Tue Dec 25 19:09:51 2012 NAKAMURA Usaku <usa@r...> * bignum.c, include/ruby/intern.h (rb_big_eql): exported. Index: lib/irb/workspace.rb =================================================================== --- lib/irb/workspace.rb (revision 38596) +++ lib/irb/workspace.rb (revision 38597) @@ -48,9 +48,9 @@ EOF https://github.com/ruby/ruby/blob/trunk/lib/irb/workspace.rb#L48 Thread.pass end @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) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/