xyz
xyz

Reputation: 1497

Ruby docs missing stuff

This has been bugging me ever since I started learning Ruby five months ago:

Why do the Ruby docs seem to be missing things? For example, http://ruby-doc.org/core-1.9.3/Array.html has no mention of instance methods any? or all?.

Upvotes: 4

Views: 140

Answers (1)

Sergio Tulentsev
Sergio Tulentsev

Reputation: 230541

That's probably because any? and all? are methods of Enumerable.

See the doc here.

There's a section in the sidebar that lists modules included in Array. Enumerable is one (and the only) item in the list.

Upvotes: 7

Related Questions