--- !ruby/object:RI::MethodDescription
aliases: []
block_params:
comment:
- !ruby/struct:SM::Flow::P
body: Returns the index of the last object in array == to obj. If a block is given instead of an argument, returns first object for which block is true. Returns nil if no match is found.
- !ruby/struct:SM::Flow::VERB
body: " a = [ "a", "b", "b", "b", "c" ]\n a.rindex("b") #=> 3\n a.rindex("z") #=> nil\n a.rindex{|x|x=="b"} #=> 3\n"
full_name: Array#rindex
is_singleton: false
name: rindex
params: |
array.rindex(obj) -> int or nil
visibility: public