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

Leave a Reply

Your email address will not be published. Required fields are marked *