Skip to content

Basic iterator to iterate through an array. It has a few nifty methods that's not included by default in rails / ruby

Notifications You must be signed in to change notification settings

marcusmalmberg/rails_array_iterator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Rails ArrayIterator

Basic iterator to iterate through an array. It has a few nifty methods that's not included by default in rails / ruby

Usage

require 'array_iterator'

my_array  = [1,2,3,4,5]
array_itr = ArrayIterator.new(my_array)

array_itr.next # => 1
array_itr.next # => 2
array_itr.step
array_itr.next # => 4

About

Basic iterator to iterate through an array. It has a few nifty methods that's not included by default in rails / ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages