From: Trans Date: 2005-08-31T02:49:43+09:00 Subject: Re: Method behaves differently when called using #send Jacob Fugal wrote: > > I like it. One of my favorite suggestions from the above thread was > "instance_send". I would suggest the following convenience method to > go along with the above: > > class Object > def instance_send( symbol, *args, &block ) > instance_eval { send( symbol, *args, &block ) } > end > end > > Thus the real difference is based on context (and there is already > precedence for explicit vs. implicit receiver being treated > differently) as Matz suggested, but there's an instance_send method to > exactly parallel instance_eval. Very clean, IMO. Nice, that would suffice (IMHO) T.