More Ruby goodness for testing
Did I mention how much I love Ruby?
items = (“A”..”Z”).to_a.in_groups(5,false)
5.times do | i |
puts items[i].flatten.to_s
puts “—-”
end
Source code is at http://apidock.com/rails/Array/in_groups
Did I mention how much I love Ruby?
items = (“A”..”Z”).to_a.in_groups(5,false)
5.times do | i |
puts items[i].flatten.to_s
puts “—-”
end
Source code is at http://apidock.com/rails/Array/in_groups