From: Jens Wille Date: 2008-09-30T19:48:20+09:00 Subject: Re: Way to intercept method calls? - Reopened hi trans! Trans [2008-09-30 05:28]: > It's only worth it for things like debugging. sure, but i thought it might work, so i tried. that's all ;-) maybe using the method_added hook in conjunction with define_method and the notorious alias_method chain works out better... > It's way to slow to be generally useful. i'm not so much concerned with speed at the moment, i'd rather want it to work somehow. besides, we don't love ruby for her speed, do we? ;-) > You can look at Facets' tracepoint.rb library, to see another > variation on a set_trace_func wrapper. looks nice! cheers jens