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: 51,583 of 183,107
Downloads: 19,271

Daily

Ranking: 86,038 of 183,092
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,407,087,911bundler
25817,849,894rspec
99348,223,614simplecov
28,34842,729simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel