Iteration

Methods
Attributes
[R] after
[R] index
[R] prior
[R] value
Public Class methods
new(array)
# File lib/more/facets/iteration.rb, line 7
  def initialize(array)
    @array = array
    @index = 0
    @value = array[0]
    @prior = []
    @after = array[1..-1]
  end
Public Instance methods
first?()
# File lib/more/facets/iteration.rb, line 14
  def first? ; @index == 0 ; end
last?()
# File lib/more/facets/iteration.rb, line 15
  def last?
    if Enumerable === self
      nil
    else
      @index == @array.length
    end
  end