About_Pos

Loop through an array and keep track of previous, next item, current item, etc

Installation

gem 'about_pos'

Usage

No coming any time soon.

The Essence of the Implementation

  • meta.next, meta.prev.
  • saving data ([], []=) and keep sure the data is carried over to the other items.