From: Robert Klemme Date: 2010-07-24T02:03:30+09:00 Subject: Re: Trace calls in a module On 07/23/2010 06:33 PM, Jonathan Steel wrote: > How do you do the equivalent of include in a module? I would like to > trace all the calls in a module. I don't understand this: why is tracing of method calls equivalent to module inclusion? > There is an example for how to do this > as a mixin for a class in the pick axe, but how do I do it for a module? > Can I get access to the meta class for the module and mix it in there? I don't have my pickaxe handy right now. What does the code do? It may be possible to just exchange a module with the class. Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/