From: Brad Phelan Date: 2007-05-07T15:50:06+09:00 Subject: Re: modules and class methods. > > You can use the inherited hook in Module to do both -- for example: > > module M > def self.included(c) > m = self > c.class_eval { extend m } > end > > def meth > puts "here" > end > end > > class C > include M > end > > C.meth # here > C.new.meth # here > > > David > Now that is the sneaky little hook I was looking for. Thanks Brad -- http://xtargets.com