Documentation for index() and find_index()

Hi,

I was looking for documentation for the block variants of Array#index
and/or Array#find_index methods at
http://www.ruby-doc.org/core/classes/Array.html
but could not find anything (I do see the object variant of
Array#index). Are they documented elsewhere ?

Thanks.

···

--
Posted via http://www.ruby-forum.com/.

It is documented in the source. ruby-doc.org is just out of date.

http://rdoc.info/docs/ruby-core/1.8.7/Array:index

-Justin

···

On 11/06/2010 05:04 PM, Bug Free wrote:

Hi,

I was looking for documentation for the block variants of Array#index
and/or Array#find_index methods at
class Array - RDoc Documentation
but could not find anything (I do see the object variant of
Array#index). Are they documented elsewhere ?

Thanks.

The 1.9 docs seem to have them:
http://ruby-doc.org/ruby-1.9/index.html
specifically:
http://ruby-doc.org/ruby-1.9/classes/Array.html#M000712

···

On Nov 6, 5:04 pm, Bug Free <amberar...@yahoo.com> wrote:

I was looking for documentation for the block variants of Array#index
and/or Array#find_index methods athttp://www.ruby-doc.org/core/classes/Array.html
but could not find anything (I do see the object variant of
Array#index). Are they documented elsewhere ?