Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
class hierarchy with rdoc
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Stefano Crocco, post: 4555776"] Alle sabato 7 aprile 2007, Googy ha scritto: RDoc doesn't allow you to see the full class hierarchy, but it does allow you to see the parent class of a given class. It's specified just below the name of the class. Taking Fixnum as an example, at the beginning of the documentation page, there is: Class Fixnum In: numeric.c lib/mathn.rb lib/rational.rb lib/rexml/xpath_parser.rb Parent: Integer This last line is the one you need. It tells you that the parent class of Fixnum is Integer. You can also see it using ri: if you type, for example: ri Fixnum, the very first line you get says: Class: Fixnum < Integer which tells you the parent of Fixnum. If no parent is displayed, it means that the class inherit directly from Object. I hope this helps Stefano [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
class hierarchy with rdoc
Top