From: Benjohn Barnes Date: 2006-03-26T18:02:09+09:00 Subject: Re: meaning of *array On 25 Mar 2006, at 19:42, Caleb Clausen wrote: > On 3/25/06, Benjohn Barnes wrote: >> def method_missing( method_name, *all_the_parameters, >> &optional_block ) >> @my_delegatee.send( method_name, *all_the_parameters, >> &optional_block ) >> end > > I like this way better: > > require 'forwardable' > > class WhateverItIs > extend Forwardable > def_delegator :@my_delegatee, :method_missing > end :) :) So do I too. It was an example, and in no way intended to show regular practice!!!! :) I should have given a link to that when I mentioned it. Caleb is absolutely right. You should never use the code I posted as anything more than a guide of how something like that could work, and if you have been misguided by me, please accept my abject apologies. You could also look at the Ruby standard library 'delegate', documentation for which can be found here (Thanks Dave et al): http://www.rubycentral.com/book/lib_patterns.html Cheers, Benjohn