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.
Activity
- Latest release
- 15y ago
- Total releases
- 4
- Cadence
- ~daily
- Last 12 months
- 0
Details
- First release
- Apr 09, 2011
Releases
| Version | Released | |
|---|---|---|
1.1.3
patch
| ||
1.1.2
patch
| ||
1.1.0
minor
| ||
1.0.0
initial
|