From: Neville Burnell Date: 2005-09-15T12:28:53+09:00 Subject: Re: params v.s. @params in rails? >> From: Ara.T.Howard [mailto:Ara.T.Howard@noaa.gov] >> Sent: Thursday, 15 September 2005 1:22 PM >> To: ruby-talk ML >> Subject: Re: params v.s. @params in rails? >> >> def method_missing(m, *a, &b) >> idx = FIELDS.index m.to_s >> return self[idx] if idx >> super >> end >> >> this routes through method_missing each time, which is expensive Intuitively it sounds expensive, because [I imagine] ruby needs to traverse then inheritance tree for the object, but in a simply case like your example is it still expensive, ie, is method_missing much more expensive than any other call ? Neville