From: Jim Weirich Date: 2002-10-13T08:24:11+09:00 Subject: Re: Delegating each On Sat, 2002-10-12 at 19:14, Michael Schuerig wrote: [...] > Is there a more direct way of implementing each? Is is possible to get > rid of the each-loop and delegate its behavior to myarray? You could try ... def each(&block) @myarray.each(&block) end -- -- Jim Weirich jweirich@one.net http://w3.one.net/~jweirich --------------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)