I just ran into what looks like a documentation problem in Ruby 1.8.6 (maybe other versions). If you want to use:
Array#each_slice()
…you’ll need to:
require "enumerator"
…beforehand. However, the Ruby documentation doesn’t seem to mention anything about it.
thanks for sharing…
Thanks. I was scratching my head wondering why I couldn’t use that method.