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?.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
That’s probably because
any?andall?are methods ofEnumerable.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.