From: "Brian Schröder" Date: 2005-08-30T22:44:39+09:00 Subject: Re: Method behaves differently when called using #send On 30/08/05, James Edward Gray II wrote: > On Aug 29, 2005, at 11:10 PM, Yukihiro Matsumoto wrote: > > > Hi, > > > > In message "Re: Method behaves differently when called using #send" > > on Tue, 30 Aug 2005 01:03:12 +0900, Yukihiro Matsumoto > > writes: > > > > |Because I felt they are different, as I said above. I admit fcall is > > |not the best name, but very few people would use it. > > > > OK, here's another idea. How about > > > > foo.send(:bar) > > > > calls only public methods and > > > > send(:bar) > > > > calls private methods of the receiver as well? > > I really like that, for what it's worth. > > James Edward Gray II > > > +1 I never knew that send is not equivalent to the dot and would like it if reality adopted to my imagination instead of the other way around ;-) regards, Brian -- http://ruby.brian-schroeder.de/ Stringed instrument chords: http://chordlist.brian-schroeder.de/