From: Robert Klemme Date: 2006-09-20T22:55:08+09:00 Subject: Re: self.method? On 20.09.2006 15:48, aidy wrote: >> Based on that, you could try something as follows: >> >> def who_am_i? >> return caller[0] >> end >> >> def meth >> p who_am_i? >> end >> > > Thank you, that certainly works You can also do that without a helper method: def meth p caller(0)[0] end Note: default argument for caller is 1, which makes it start one level above. Kind regards robert