From: Ilias Lazaridis Date: 2005-04-05T00:05:27+09:00 Subject: Re: [EVALUATION] - E03 - jamLang Evaluation Case Applied to Ruby James Edward Gray II wrote: > On Apr 4, 2005, at 9:04 AM, Ilias Lazaridis wrote: > >> George Moschovitis wrote: >> >>>> There are nice diagrams of this relationship in Programming Ruby >>>> (Chapter 24: Objects and Classes). >> >> Is this book available online? > > The first edition of the book (now in its second edition) is available > online, but the figures aren't in it. They are what you are after. sad. >>> or you can just use ri: >>> ri Class >>> generates an ASCII version of the diagrams. >> >> where do i use it? > > ri should be installed with Ruby. The documentation may or may not have > been, depending on how you installed Ruby. If it is installed, typing > "ri Class" at the command-line will fetch the document. ok, it works. > > I'll inline the document George mentioned below, for reference, but I > don't personally feel it's as helpful as the figures in Programming Ruby. [...] he refered most possibly to this: (this is what I would need as a UML diagramm) > Classes, modules, and objects are interrelated. In the diagram > that follows, the arrows represent inheritance, and the > parentheses meta-classes. All metaclasses are instances of the > class `Class'. > > +------------------+ > | | > Object---->(Object) | > ^ ^ ^ ^ | > | | | | | > | | +-----+ +---------+ | > | | | | | > | +-----------+ | | > | | | | | > +------+ | Module--->(Module) | > | | ^ ^ | > OtherClass-->(OtherClass) | | | > | | | > Class---->(Class) | > ^ | > | | > +----------------+ .. -- http://lazaridis.com