From: "Iván Vega Rivera" Date: 2006-03-08T10:50:54+09:00 Subject: Re: Passing the same argument(s) to several methods at once Thanks but could you explain me a little bit more how that works? Ruby says 'block' is undefined. So I'm missing something. The problem is I don't quite understand how that code works :-) Ivan V. On 3/7/06, ara.t.howard@noaa.gov wrote: > > the general case is: > > %w( function_a function_b ).each{|m| receiver.send(m, *args, &block)} > > works for any number of args, any receiver, and any block or lack of. > > hth. > > -a > > -- > judge your success by what you had to give up in order to get it. > - h.h. the 14th dali lama > >