From: Daniel N Date: 2006-10-26T12:17:38+09:00 Subject: Re: Pass block instead of here document? ------=_Part_2095_13529921.1161832654921 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline My understanding of blocks is at best still very shakey, but is there a reason in all these that something like def tell yield self end would not have the desired effect. Then with appropriate method missings etc you could call whatever you like in the block. If the drink and eat methods are already defined in the object, they would be called as appropriate. so to use it. obj = Foo.new obj.tell do eat 'burger', 'fries' drink 'beer' end Is there a reason that this would not have the same effect as the instance_eval methods? ------=_Part_2095_13529921.1161832654921--