Enable basic array operators to work on the object. E.g. ``` ruby arr = [1,2,3,4] itr = ArrayIterator.new(arr) itr[2] # => 3 ```
Activity
marcusmalmberg commentedon Nov 9, 2012
A good solution might be to extend the default array with the iterator functionality instead? http://stackoverflow.com/questions/2938993/where-do-you-extend-classes-in-your-rails-application