Hi,

I want to have some nested structure of modules,

basically something like


module Monday
  autoload :Morning, "morning"

  module XYZ
    ...
  end
end



which works without problems.
in morning.rb the module is written as

module Morning
  ...
end

and automatically becomes Monday::Morning.
without the need to ever mention "Monday" in the source
file.

But now I want to include the module XYZ into 
Morning without writing  
  include Monday::XYZ 
because I do not want to write Morning in a way that
it fits into Monday only.


How can the module Morning figure out at runtime
which parent module has just included it?

Hadmut