From: Martin DeMello Date: 2006-08-07T05:52:15+09:00 Subject: Re: Iterating over an array n element at a time On 8/7/06, Marcelo Alvim wrote: > Hi, > > Sorry about the real newbie interrupting the high level thread, but... > > I liked very much the "eachn" method from Martin, and decided to test > it out. I got a "Undefined method 'each_slice'" for the array. Went to > ruby-doc.org, and the core docs have each_slice defined in module > Enumerable. I have Ruby 1.8.4 installed. Does anyone know why is that > not working for me? You need to require 'enumerator', which adds additional methods like each_slice to Enumerable. martin