From: Albert Schlef Date: 2010-04-01T07:45:59+09:00 Subject: Re: each_slice() Albert Schlef wrote: > If *you* where using each_slice(), what versions of Ruby would you limit > your gem to? I searched the net and it seems it's only safe to use each_slice() in Ruby 1.9, I think. But I need my code to work in 1.8 as well. Anybody has an idea how to rewrite the following code some_array.each_slice(2).to_a so that it works in Ruby 1.8 too? -- Posted via http://www.ruby-forum.com/.