On Tue, 2006-03-21 at 05:01 +0900, dblack / wobblini.net wrote: > Hi -- > > On Tue, 21 Mar 2006, Ross Bamford wrote: > > > On Mon, 2006-03-20 at 22:03 +0900, Trans wrote: > >> Gee. Once again I want my module methods inherited. > > > > As usual, I have a feeling the answer is 'no', but doesn't this take > > care of it (maybe with improved ignorance of callback methods)? > > > > module Foo > > def self.included(c) > > singleton_methods.reject { |e| e == 'included' }.each do |m| > > mod = self > > c.class_eval do > > (class << self; self; end).class_eval do > > Is there any reason not to just do that as: > > (class << c; self; end).class_eval > No, I don't think so. I just missed it during refactoring :) -- Ross Bamford - rosco / roscopeco.REMOVE.co.uk