From: Wilson Bilkovich Date: 2006-10-25T11:04:22+09:00 Subject: Re: What's the difference between send and instance_eval? On 10/24/06, Tomasz Wegrzanowski wrote: > On 10/24/06, michele wrote: > > > > So there is no need for "send"? > > But there obviously is - method in send doesn't have to be a constant. > > # A delegator > def method_missing(m, args, &blk) > @obj.send(m, args, &blk) > end > > Now try that with instance_eval ;-) def method_missing(m, args, &block) @obj.instance_eval { self.send(m, args, &block) } end Heh.