Check out Kernel#set_trace_func. Note it is very slow!

Kent.

On 2/10/06, Imobach Gonz?lez Sosa <imobachgs / gmail.com> wrote:
> Hi all,
>
> We were wondering if it's possible to catch all method calls. I mean a kind
> of 'hook' that allow you to do something just before a method is executed.
>
> Browsing in the mailing list's archives, we read this thread about this
> topic: http://www.ruby-talk.org/cgi-bin/scat.rb/ruby/ruby-talk/668. Anyway,
> this thread is pretty old, so we'd like to know if nowadays exists a
> mechanism to do that.
>
> Thank you all in advance!
>
> --
> Imobach Gonz?lez Sosa
> imobachgs at gmail dot com
>
>