Project

about_pos

0.0
No commit activity in last 3 years
No release in over 3 years
Whenever I loop through an array, there are times I wish I could know what comes before or after the item I am currently one. Including prev/next index calculations. This gem helps you with that. However, it would be better for you to create your own since you will probably not like my way of doing it.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

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.