Martin Aumont created a gem that add an every method to enumerable: see his post.
The result is quite nice:
1
2 enum = [1.4, 2.4 ,3.4]
enum.every.floor # [1, 2, 3]
Martin Aumont created a gem that add an every method to enumerable: see his post.
The result is quite nice:
1
2 enum = [1.4, 2.4 ,3.4]
enum.every.floor # [1, 2, 3]
This entry was posted on 01/04/2009, 11:40 and is filed under ruby. You can follow any responses to this entry through RSS 2.0. You can leave a response, or trackback from your own site.
Fusion theme by digitalnature | powered by WordPress
Entries (RSS) and Comments (RSS) ^