From: Eric Hodel Date: 2012-04-13T05:11:26+09:00 Subject: Re: request for feature: nested methods should be private on nesting method On Apr 12, 2012, at 9:46 AM, botp wrote: > would be nice if nested methods are made private for the nesting > method only, eg > > def test1 > def test2 > p "i am test2" > end > test2 > end > > test1 > test2 <== this one should fail; ie only test1 should see test2 > > maybe to invoke test2 from outside, we may need to do test1::test2 Please file language feature requests here: https://bugs.ruby-lang.org/projects/ruby-trunk/issues/new so the ruby committers will see them.