On 8/7/06, Marcelo Alvim <malvim / gmail.com> 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