From: Jim Weirich Date: 2005-04-19T13:37:30+09:00 Subject: Re: - E03c - The Ruby Object Model (Revised Documentation) On Monday 18 April 2005 11:34 pm, Ilias Lazaridis wrote: > > There is another evident mistake in your UML diagram. Object doesn't > > inherit from nil, nil is a literal and an instance of NilClass which > > inherit from Object. > > you are wrong: > > irb(main):001:0> Object.superclass > => nil The documentation for superclass clearly states that it returns the superclass of its target, or nil. In this case it returns nil because Object does not have a superclass, i.e. it does not inherit from anything. -- -- Jim Weirich jim@weirichhouse.org http://onestepback.org ----------------------------------------------------------------- "Beware of bugs in the above code; I have only proved it correct, not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)