From: Rick DeNatale Date: 2007-03-14T18:56:45+09:00 Subject: Re: calling a method using a variable name?? On 3/13/07, Timothy Hunter wrote: > Look up the __send__ method: > > obj.__send__("methodname", arg1, arg2) Or just send which in most cases is preferable. They both do the same thing (in fact I believe that one is an alias of the other). __send__ is there to cover cases where a class defines a send method for another purpose. -- Rick DeNatale My blog on Ruby http://talklikeaduck.denhaven2.com/