From: William Djaja Tjokroaminata Date: 2002-10-02T03:20:45+09:00 Subject: Re: current method Wow, that is a much more clever and much more elegant solution by using the "caller" method. May I push it a little bit further? What is the best way to put the log in all the (or some selective) methods so that we don't have to write the "log" calls in all those methods manually? Will aspect oriented programming (aspectR) play a role in this? Regards, Bill ========================================================================== Rich Kilmer wrote: > def meth > log "Message" > end > > def log(message) > puts caller[0]+" "+message > end