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,782 of 193,756
Downloads: 20,775

Daily

Ranking: 110,042 of 193,649
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,494,238,297bundler
29989,540,006rspec
97475,839,609simplecov
25,97358,160simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel