Whence Array#each_slice()?

I just ran into what looks like a documentation problem in Ruby 1.8.6 (maybe other versions). If you want to use:


…you’ll need to:

require "enumerator"

…beforehand. However, the Ruby documentation doesn’t seem to mention anything about it.

This entry was posted in Ruby.

2 comments on “Whence Array#each_slice()?

  1. Dayo Esho says:

    thanks for sharing…

  2. Thanks. I was scratching my head wondering why I couldn’t use that method.

Comments are closed.