From: Michael Sokol Date: 2011-06-04T23:19:17+09:00 Subject: Re: CORE - Altering Behaviour of "each do" (default param "item") Actually it would be possible, although very ugly. You need to evaluate in the context of the current instance (instance_eval) - not yield - the block you pass to the each method of your object (an array in this case). Then you can define a print method that behaves like a coroutine (check out ruby fibers) and returns each element of your array. Sorry I'm not writing code here, I'm using my cellphone. Michaƫl Sokol On Jun 4, 2011, at 8:23 AM, Peter Hickman wrote: > Probably not without changing Ruby itself. >