From: Akinori MUSHA Date: 2002-10-20T23:01:27+09:00 Subject: Re: Is subclass known in superclass.initialize? (virtual constructor theme...) At Sun, 20 Oct 2002 11:07:51 +0900, Dave Thomas wrote: > 'type' returns the class of its receiver, so: (snip) > So can also use #class, but you have to be careful to call it with an > explicit receiver, or Ruby will think you're starting a class > definition. Object#type is being deprecated in the development version (though I don't know why), so I'd recommend "self.class". -- / /__ __ Akinori.org / MUSHA.org / ) ) ) ) / FreeBSD.org / Ruby-lang.org Akinori MUSHA aka / (_ / ( (__( @ iDaemons.org / and.or.jp "When I leave I don't know what I'm hoping to find When I leave I don't know what I'm leaving behind.."