From: James Coglan Date: 2008-10-23T07:30:36+09:00 Subject: Re: subclass a class in the namespace of the that subclass ------=_Part_35065_19858321.1224714728776 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline > > > class X < Y > class Y > end > end Could you make Y a module? class X module Y # methods end include Y # more methods end Or, if Y needs to be a class: class X module M # methods for Y end class Y; include M; end # Y implements nothing itself include M # add methods to X here end That way, X and Y both inherit from M, but Y is basically an empty class that acts as an instantiable version of module M. -- James Coglan http://blog.jcoglan.com http://github.com/jcoglan ------=_Part_35065_19858321.1224714728776--