If I say:

module Foo
   def zim; end
end
class Bar
  class << self
    include Foo
  end
end

# Bar.zim is now available

How can I find out which modules are included into Bar at class-level.

Some attempts:

Bar.included_modules
Bar.class.included_modules
Bar.class.new.included_modules
Bar.ancestors
Bar.class.ancestors
Bar.class.new.ancestors

None of them return anything with Foo in it.
-- 
Posted via http://www.ruby-forum.com/.