From: Ilias Lazaridis Date: 2005-04-20T21:19:34+09:00 Subject: Re: [EVALUATION] - E03d - The Ruby Object Model (End Game) Ilias Lazaridis wrote: > Carlos wrote: [...] >>> the above diagramm shows a "(Object)", which inherits from "Class". >>> >>> how do I call "(Object).superclass"? >> >> class<> >> $ ruby -e 'p class<> Class > > (class< > ok, fine. > > - > > How do I include the construct: > > (class< > conveniently into the definition of "Class"? > > I like to have .Meta available in each class. > > - > > I'm a newcomer, my try is this one: > > class Class > def Meta() > @Meta ||= (class< end > end > > but it fails > > p Talker.Meta.object_id => 20763792 > p (class< 20679384 > > . > -- http://lazaridis.com