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: 54,100 of 191,455
Downloads: 20,557

Daily

Ranking: 40,476 of 191,429
Downloads: 7

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,290,634,251bundler
29964,231,479rspec
99454,797,191simplecov
27,22752,271simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel