From: Daniel Harple Date: 2006-04-27T10:43:05+09:00 Subject: Re: Extending Methods On Apr 27, 2006, at 3:26 AM, Geoff Stanley wrote: > 1) The child classes wouldn't do > anything; They'd have to be hooked into the main program somehow... > troublesome and [...] 1) Use Class#inherited class Parent @@children = [] def self.children @@children end def self.inherited(child) @@children << child end end class Child < Parent end class Child2 < Parent end Parent.children # => [Child, Child2] # initialize each plugin ... -- Daniel