From: Henry Savr Date: 2006-08-18T02:25:17+09:00 Subject: Re: How to - Get method's name? Justin Collins wrote: > Henry Savr wrote: >> Dear Ruby gurus: >> >> How to get the method's name inside itself. For example to send it to >> Error Processor >> >> Thank you, >> Henry >> > > There is no _good_ way of getting the method name, but you can see here > for solutions: > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/205950 > > On the other hand, if you are doing it for error handling, why not just > use exceptions? They will have the stack trace with them. > > -Justin Thank you, actually it is NOT for error processing, but the Error example, what I expect to get, is clear for virtually everybody. Henry -- Posted via http://www.ruby-forum.com/.