From: uncutstone wu Date: 2006-05-21T16:25:47+09:00 Subject: How to intercept all function calls of a object? What I want is something like this: class HelloBye def hello puts "hello" end def bye puts "byebye" end end a = HelloBye.new a.extend #add an intercptor to a a.hello Then I can get this kind of result: call method hello of class HelloBye hello return from method hello of class HelloBye And similar thing for 'bye' and other methods if existed in object a. -- Posted via http://www.ruby-forum.com/.