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: 52,828 of 186,715
Downloads: 19,789

Daily

Ranking: 57,036 of 186,700
Downloads: 9

Depended by

RankDownloadsName

Depends on

RankDownloadsName
12,903,420,977bundler
27909,005,466rspec
99413,201,527simplecov
29,14544,110simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel