From: Michael Guterl Date: 2006-09-20T22:16:05+09:00 Subject: Re: self.method? ------=_Part_20226_15753056.1158758162189 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline On 9/20/06, MonkeeSage wrote: > > aidy wrote: > > We can write "self.class" to get the current object, but is it possible > > to do something like a "self.method" to retrieve the currently running > > method? > > Hi Aidy, > > In short, no it is not possible (in an easy way) -- but just wait, and > someone smarter than me will prove me wrong. ;) See also Kernel#caller > [1] > > [1] http://ruby-doc.org/core/classes/Kernel.html#M001968 > > Regards, > Jordan > > > This thread may be of some help. http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205118 Michael Guterl ------=_Part_20226_15753056.1158758162189--