From: botp Date: 2009-06-11T11:46:24+09:00 Subject: Re: Is there a method to tell me the name of the method I'm in? On Thu, Jun 11, 2009 at 9:37 AM, Xeno Campanoli wrote: > This would be handy with some of my class methods for composing exception > messages...?? > maybe you can call caller and it will tell you who you are eg, > def whoami > caller[0] >end => nil > def m > whoami > end => nil > m => "(irb):62:in `m'" >