"Chris Morris" <chrismo / clabs.org> schrieb im Newsbeitrag
news:3FF65CEC.904 / clabs.org...
> Gennady wrote:
>
> > class Root
> >   Main.classes << self
> >   def self.inherited(sub_class)
> >     Main.classes << sub_class
> >   end
> > end
>
> Perfect! Thx.

I'd just define "inherited" in class Main and not Root.

    robert