wangyh.opengoss-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
2008-Dec-31 05:51 UTC
How can I listen the events of module/class defined
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. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Seemingly Similar Threads
- [1063] trunk/wxruby2/swig/classes/EvtHandler.i: Add a public ''connect'' method for handling arbitary user-defined events
- unexpected return (LocalJumpError) only when executing this code within autoloaded classes?
- [1092] trunk/wxruby2/swig/classes/App.i: Pass correctly typed Events into filter_event, if defined (bug 10797);
- autolog: easily debug-like logging on the fly in your Rails app
- Listen to ARI events