Subject: Method Instrospection
From: Zach Dennis <zdennis mktec.com>
Date: Wed, 18 Aug 2004 10:32:18 +0900
References: 109564109586109599109603
In-reply-to: 109603
Is there a way to determine what method you are in?
class myApp
def mydef
error = true;
raise "#{self.class} : #{self.calling_method} error
end
end
Something like the #{self.calling_method} above perhaps?
Thanks,
Zach