method

rindex

v1_8_6_287 - Show latest stable - Class: Array
rindex(p1)
public

Returns the index of the last object in array == to obj. Returns nil if no match is found.

   a = [ "a", "b", "b", "b", "c" ]
   a.rindex("b")   #=> 3
   a.rindex("z")   #=> nil