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,645 of 188,757
Downloads: 20,411

Daily

Ranking: 87,276 of 188,742
Downloads: 0

Depended by

RankDownloadsName

Depends on

RankDownloadsName
13,119,417,231bundler
29941,173,382rspec
99437,027,655simplecov
28,54247,778simplecov-gem-adapter

Owners

#GravatarHandle
1iconronenbarzel