From: Scott Taylor Date: 2007-04-07T21:47:10+09:00 Subject: Re: class hierarchy with rdoc Use ri 'ClassName' at the command line. A better alternative is to download the fast-ri gem (ri is incredibly slow). Just to let you know, Ruby does not have multiple Inheritance, so most of the base classes subclass from class Object. What you are seeing when you call "ancestors" are the modules which are included in the class. All of this information is given to you through ri. If you are looking for rdoc documentation, use the gem_server command at the command line and go to http://localhost:8808/. That should give you the docs for any gems you have installed on your system. Hope that helps, Scott Taylor On Apr 7, 2007, at 8:25 AM, Googy wrote: > Hi, > > I am newbie to ruby, I have extensive experience in java & with > javadoc, javadoc shows class hierarchy i.e. its parent classes and > interfaces in a tree view, so you can easily understand the whole > hierarchy but when I moved to ruby the feature missing is to see the > class hierarchy for ruby classes. Every time I can't fire irb and > create an object and see its ancestors > (.class. ancestors). > > So am I missing something? Is it possible to see the class hierarchy > in rdoc generated documentation ? > > Particularly when you go to http://www.ruby-doc.org/core/ for core > documentation there is no way to see even Fixnum parent classes. > Fixnum is only for example. And from my experience good > documentation plays important role in its adaptability. > > Suggest me if there are any alternative ruby documentation generators > or class browsers. > > Thanks. > >