From: Pit Capitain Date: 2008-10-23T07:08:16+09:00 Subject: Re: subclass a class in the namespace of the that subclass 2008/10/22 Trans : > I know it may seem a bit off the wall. But I want to subclass a class > that is also defined in the namespace of the subclass. In other words: > > class X < Y > class Y > end > end Tom, that's easy if you split the creation of the classes from naming them: y = Class.new class X < y end X::Y = y p X.ancestors # => [X, X::Y, Object, Kernel] Regards, Pit