Forum: Ruby on Rails How can I listen the events of module/class defined

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
on 2008-12-31 18:30
(Received via mailing list)
In our project, I need to listen the events of module/class defined,
and record the events that include the context of the module/class
defined. In ruby, I cannot add a listener for the module/class
defined,  only i can set a proc with set_trace_func, in the proc, I
cannot get the module/class name from the parameters.
This topic is locked and can not be replied to.