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: 56,168 of 199,228
Downloads: 21,184

Daily

Ranking: 87,414 of 199,184
Downloads: 4

Depended by

RankDownloadsName

Depends on

RankDownloadsName
14,015,435,206bundler
291,048,421,257rspec
97526,029,737simplecov
24,33567,799simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel