Ola Bini schrieb:
> If it wouldn't be possible to have this behavior in MRI for whatever 
> reasons, could we then add something like as_module, that will return a 
> Module representation of the class?
>
> class B
>   include A.as_module
> end

Ola, why do you need it this way? If you have to exchange modules and 
classes, couldn't you use something like

   class Module
     def as_class
       me = self
       Class.new do
         include me
       end
     end
   end

   module A; end
   p A.as_class   # => #<Class:0x2aea734>

Regards,
Pit