From: "Florian Groß" Date: 2003-08-02T10:44:56+09:00 Subject: Re: debugprint Moin! >>So, some questions: >>1) is it possible for a method to get access to the context that called >>it so it can fill in things like source file name, method name, and >>line number > This might help a little: > filename = __FILE__ > line = __LINE__ > not sure about the rest def get_method_name if md = /in `(.*?)'/.match(caller[0]) md[1] end end method_name = get_method_name Regards, flgr