From: Peter Cooper Date: 2007-06-25T11:12:31+09:00 Subject: Re: variables to call methods in ruby... On 6/25/07, dblack@wobblini.net wrote: > On Mon, 25 Jun 2007, Adam Bozanich wrote: > > Can you think of any cases that show why always using __send__ is both > > necessary and clean? > > It's really more for cases where 'send' is used for something totally > different: David illustrates it better than I did, but the basic "rule" I tend to take away is that "__send__" is, effectively, guaranteed to do what I think it will (I'll see a warning if it doesn't).. whereas "send" might not. Such concerns aren't that important if you're working on classes you're familiar with, however, or if methods aren't being called on dynamically-chosen classes you have little control over. Cheers, Peter Cooper http://www.rubyinside.com/