From: Thomas E Enebo Date: 2005-09-12T00:55:46+09:00 Subject: Re: Class.new and extending it... Thanks! I have a strange variation on this (using 'inherited') that works but yours is much cleaner :) -Tom On Mon, 12 Sep 2005, ts defenestrated me: > >>>>> "T" == Thomas E Enebo writes: > > T> class Base > T> class << self > T> attr :my_name, true > > def inherited(kl) > kl.my_name = self.my_name unless kl.my_name > super > end > > T> end > > > Guy Decoux > -- + http://www.tc.umn.edu/~enebo +---- mailto:enebo@acm.org ----+ | Thomas E Enebo, Protagonist | "Luck favors the prepared | | | mind." -Louis Pasteur |