I'm using ruby 1.8.5, and the each_slice()
method for an array is not working.
My code is something like:
array.each_slice(3) do |name,age,sex| ..... end
Is there any other way to implement the same functionality in my older version of ruby.