From: Mark Hubbart Date: 2004-08-10T04:58:54+09:00 Subject: Re: stupid question: Object#name On Aug 9, 2004, at 12:21 PM, Robert Klemme wrote: > > "Mark Hubbart" schrieb im Newsbeitrag > news:436A6DB6-EA23-11D8-B619-000A95D2DFAE@mac.com... > >> Class is a template for creating objects. Object is a subclass of >> class. > > Not quite: > >>> Class.ancestors > => [Class, Module, Object, Kernel] >>> Object.class > => Class > > Class is a sub class of Object, while Object is an instance of Class! whoops... I didn't say what I meant there. What I said was obviously wrong :) I meant it the other way around. I should proof my messages better. :/ Anyway, that was mainly a statement to introduce the link, which does a much better job of stating things than I did... >> This is a fairly common OO topic, and there is a pretty good >> description of classes and objects here: >> >> http://www.visibleworkings.com/little-ruby/Chapter3.pdf > > Kind regards > > robert > >