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

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
0279c58f2e0263e8abfbddbaa53ff2e7?d=identicon&s=25 wangyh.opengoss@gmail.com (Guest)
on 2008-12-31 17: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.