Posted by Mathieu in ruby on 01/04/2009
Martin Aumont created a gem that add an every method to enumerable: see his post.
The result is quite nice:
12enum = [1.4, 2.4 ,3.4]
enum.every.floor # [1, 2, 3]
enumerable, every, ruby
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^