kernel/common/array.rb
# Passes each index of the Array to the given block
# and returns self.  We re-evaluate @total each time
# through the loop in case the array has changed.
Passes each index of the Array to the given block
and returns self.  We re-evaluate @total each time
through the loop in case the array has changed.
Passes each index of the Array to the given block and returns self . We re - evaluate @total each time through the loop in case the array has changed .
def each_index()
    i = 0
    while i < @total
      yield i
      i += 1
    end
    self
  end
def each_index ( ) i = 0 while i < @total yield i i += 1 end self end
Passes each index of the Array to the given block
and returns self.
Passes each index of the Array to the given block and returns self .