From: 7stud -- Date: 2011-07-31T21:24:46+09:00 Subject: Re: Documentation in Ruby amir e. wrote in post #1013953: > Hi > I have a problem with Ruby Reference. How can I see all the methods of a > class? for example from where I know that array has a method that its > name is "detect" ? > > thanks All the methods that an object can call come from several sources: its singleton class its class all it's parent classes modules its class includes modules its parent class's include One way to find 'detect' is to go to the docs for Array, and when you don't see the method listed there, look under the heading Included Modules. In this case, Enumerable is listed, and if you click on that link, you will be taken to the Enumerable class and the methods listed there include detect. -- Posted via http://www.ruby-forum.com/.