Categories: None [Edit]

array_floe

https://rubygems.org/gems/array_floe
https://github.com/ronen/array_floe
This small extension to ruby's Array class provides two additional iterators, Array#each_with_floe and Array#each_with_index_floe, that simplify the reasonably-common need to specially handle "floe"--i.e., first, last, odd, even--when iterating through the elements of an array. It's particularly handy for generating CSS classes.

Total

Ranking: 50,717 of 180,671
Downloads: 18,842

Daily

Ranking: 65,668 of 180,660
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,101,349,740bundler
24771,889,602rspec
101314,472,902simplecov
27,50142,347simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel