From: Pit Capitain Date: 2005-12-06T19:53:27+09:00 Subject: Re: Subclassing Class. Ross Bamford schrieb: > On Tue, 06 Dec 2005 08:30:43 -0000, Pit Capitain wrote: >> >> The class ConcreteFoo inherits behaviour from the class Foo and >> ConcreteFoo's singleton class inherits from Foo's singleton class. >> >> I don't know whether this still works in Ruby 1.9, though. > > It seems to (as of a few days ago at least): > > [rosco@jukebox ruby]$ ruby oneninetest.rb > new Foo with abstract fu and abstract stuff > ConcreteFoo: new Foo with concrete fu and concrete stuff > > [rosco@jukebox ruby]$ ruby9 oneninetest.rb > new Foo with abstract fu and abstract stuff > ConcreteFoo: new Foo with concrete fu and concrete stuff Thanks for the info, Ross. I remember vaguely that something about the inheritance of classes' singleton classes should change in Ruby 2, but I'm not sure. Regards, Pit