Not found

The exact documentation you were looking for could not be found. Here is the best guess.

index(p1) public

Returns the index of the first object in self such that is == to obj. Returns nil if no match is found.

   a = [ "a", "b", "c" ]
   a.index("b")   #=> 1
   a.index("z")   #=> nil
Show source
Register or log in to add new notes.
July 8, 2009
1 thank

This is an alias

Please comment under the real method instead: find_index