From: dblack@... Date: 2006-12-31T21:12:07+09:00 Subject: Re: Little Things Hi -- On Sun, 31 Dec 2006, Rob Sanheim wrote: > On 12/31/06, Devin Mullins wrote: >> Trans wrote: >> > Hmm... Are you perhpas indirectly suggesting: >> > >> > send(:meth) # private >> > self.send(:meth) # public >> > >> > ? >> >> Yikes, a method that behaves differently depending on how it's called? >> What about method(:send).call vs self.method(:send).call? >> >> Meprefers send_priv or something. >> >> Devin > > What about: > > obj.send(:foo) # will call only public > obj.send!(:foo) # will bypass private/protected, like the current send. > > reads better then funcall to me, at least. Me too -- that was what I suggested long ago :-) Matz didn't feel it corresponded to his concept of a ! (dangerous) method. David -- Q. What is THE Ruby book for Rails developers? A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black) (See what readers are saying! http://www.rubypal.com/r4rrevs.pdf) Q. Where can I get Ruby/Rails on-site training, consulting, coaching? A. Ruby Power and Light, LLC (http://www.rubypal.com)