From: Victor Reyes Date: 2008-05-22T22:11:06+09:00 Subject: Re: Is rdoc (http://www.ruby-doc.org/core/) complete? ------=_Part_6160_32544181.1211461856663 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Please forgive my ignorance and thank you for the information. I have an array of integers with a minimum of 9 elements and a maximum of 81. I need to count the frequency of each digit (1..9). That's why I was looking into the use of *find_all* or some other util that would make my code simple. Otherwise I would have to loop and count the old fashion way. Thank you Victor On Thu, May 22, 2008 at 8:49 AM, Stefano Crocco wrote: > On Thursday 22 May 2008, Victor Reyes wrote: > > Hello Team, > > > > Although I have over a dozen Ruby books (and still do not master the > > language) I try to make frequent use of the online documentation, rdoc, > > located at: http://www.ruby-doc.org/core/. > > However, I was searching the *rdoc* for a method I new existed by reading > > "*The Ruby Way* - Second Edition By: Hal" but could not find it. The > method > > was * find_all* which is part of *Array* class. I then looked a bit > further > > and noticed that a sizable number of methods for the same class are not > > found at rdoc. > > > > Since carrying books is a bit difficult a time, is there a definitive > site, > > book, or whatever where I can find all the docs for a given release of > > Ruby? > > > > Thank you > > > > Victor > > find_all is not a method of the Array class, but an instance method of the > Enumerable module, which is mixed-in in class Array. If you look at the > online > documentation for Array, you'll see that there's a section called "Included > Modules", which contains Enumerable. Clicking on it, you'll be directed to > the > documentation for the Enumerable module, knowing that all its instance > methods > are also instance methods of Array. > > Stefano > > > ------=_Part_6160_32544181.1211461856663--