> 
> 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