From: Daniel Harple Date: 2006-07-31T12:43:39+09:00 Subject: Re: using the current method name within current method On Jul 30, 2006, at 11:37 PM, Matthew Heidemann wrote: > Is there a way to get the current method name within the current > method? > > def test_method > puts self.current_method > end > > --- output ---- > test_method In 1.9 (Ruby CVS HEAD) there is #__method__ and #__callee__: http:// eigenclass.org/hiki.rb?Changes+in+Ruby+1.9#l90 -- Daniel