------ art_15630_12082577.1226744363842
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi list,
I'm trying to get a reference to the module that a method is defined in,
problem being that the module is generated dynamically so is not part of the
AST.
foo odule.new do
def m
Module.nesting
end
end
#<Module:0x28879c4>
c lass.new { include foo }
#<Class:0x287164c>
c.new.m
[]
Is there any way for a method defined like this to get a reference to its
containing module?
------ art_15630_12082577.1226744363842--