From: Michael Schuerig Date: 2002-10-13T08:14:20+09:00 Subject: Delegating each I have a class that basically encapsulates an array and mixes Enumerable in. Currently it looks something like this class C include Enumerable ... def each(&proc) @myarray.each do |e| proc.call(e) end end end 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? Michael -- Michael Schuerig � � � � � � � � �If at first you don't succeed... mailto:schuerig@acm.org� � � � � �try, try again. http://www.schuerig.de/michael/� �--Jerome Morrow, "Gattaca"