From: Gavin Sinclair Date: 2003-01-23T13:01:26+09:00 Subject: Re: accessors for module instance vars On Thursday, January 23, 2003, 4:08:49 AM, Mauricio wrote: > I meant that > batsman@tux-chan:/tmp$ cat c.rb > class A; end > class B < A; end; > p (B < A) > p (B.class < A.class) > batsman@tux-chan:/tmp$ ruby c.rb > true > false > as both are of class Class. If there was an automatic relationship > between the classes of the classes, my example wouldn't work. >> class A; end => nil >> A < (class << A; self; end) => false >> A > (class << A; self; end) => false >> A <=> (class << A; self; end) => 1 Can anyone tell me what to make of that? I thought that the singleton of a class inherited from the class. The operation of "super" within a singleton implies that. Gavin