From: Jeff Turcotte Date: 2008-01-26T08:00:57+09:00 Subject: New classes on inheritance I'm trying to create a new globally available subclass upon the inheritance of another class. This code isn't close to complete, but I think I'm on the right track. class PersonHelper; end class Person def self.inherited(klass) helper = Object.const_get(klass.to_s + 'Helper') # define class here? end end class Employee < Person; end Basically, I'm trying to accomplish this: class EmployeeHelper < PersonHelper; end ...by defining class Employee. Any help would be appreciated. Thanks in advance! -- Posted via http://www.ruby-forum.com/.