Loop through an array and keep track of previous, next item, current item, etc.
Ruby Shell
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
bin
lib
specs
.gitignore
Gemfile
LICENSE.txt
README.md
VERSION
about_pos.gemspec

README.md

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.