Gennady wrote:

> class Root
>   Main.classes << self
>   def self.inherited(sub_class)
>     Main.classes << sub_class
>   end
> end

Perfect! Thx.

-- 
Chris
http://clabs.org/blogki