Thanks for the Array.new(2) { ... } tip, Andrew. Previously I did:
2.times.map { |n| ... }
It's probably still a valid approach, but it's good to know there's an
alternative.
- Aleksey
--
You received this message because you are subscribed to the Google Groups "Ruby
or Rails Oceania" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/rails-oceania/-/Ua5pSojpVu4J.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/rails-oceania?hl=en.