A
Albert Schlef
I'm using the following code:
some_array.each_slice(2).to_a
Now, I have a problem. I distribute my code as a gem, and I need to know
from which version Ruby supports this each_slice() syntax (I'll put this
version number in my gem specification: s.required_ruby_version = '=>
1.8.?').
I located this feature in MRI Ruby's ChangeLog, but when I use git to
see which versions (tags) contain this commit, I see that it's only in
the 1.9.x versions. This couldn't be, of course, because this feature is
somehow in 1.8.x too.
If *you* where using each_slice(), what versions of Ruby would you limit
your gem to?
some_array.each_slice(2).to_a
Now, I have a problem. I distribute my code as a gem, and I need to know
from which version Ruby supports this each_slice() syntax (I'll put this
version number in my gem specification: s.required_ruby_version = '=>
1.8.?').
I located this feature in MRI Ruby's ChangeLog, but when I use git to
see which versions (tags) contain this commit, I see that it's only in
the 1.9.x versions. This couldn't be, of course, because this feature is
somehow in 1.8.x too.
If *you* where using each_slice(), what versions of Ruby would you limit
your gem to?