kernel/common/array.rb
# Returns the index of the last element in the Array
# for which elem == obj is true.
Returns the index of the last element in the Array
for which elem == obj is true.
Returns the index of the last element in the Array for which elem == obj is true .
def rindex(obj)
    i = @total - 1
    while i >= 0 do
      return i if at(i) == obj
      i -= 1
    end
    nil
  end
def rindex ( obj ) i = @total - 1 while i >= 0 do return i if at ( i ) == obj i -= 1 end nil end
Returns the index of the last element in the Array
for which elem == obj is true.
Returns the index of the last element in the Array for which elem == obj is true .
obj
<not_specific>