From: Simen Date: 2006-05-22T00:10:05+09:00 Subject: Re: How to intercept all function calls of a object? Simen wrote: > Robert Klemme wrote: >> 2006/5/21, uncutstone wu : >>> Then I can get this kind of result: >>> >>> call method hello of class HelloBye >>> hello >>> return from method hello of class HelloBye >> >> I once hacked something quite complex together that supports multiple >> hooks and threads. The code is on the Wiki >> http://wiki.rubygarden.org/Ruby/page/show/MethodHooks >> >> Kind regards >> >> robert > > I did something similar: > ... I should add, though, that it acts funny when you redefine hookups for other classes. It obviously needs to be extended to work in practice. Consider it an idea. -- Posted via http://www.ruby-forum.com/.