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: 53,995 of 190,317
Downloads: 20,505

Daily

Ranking: 74,401 of 190,280
Downloads: 2

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,240,425,504bundler
29957,358,331rspec
99449,649,641simplecov
28,05949,776simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel