Ralph Shnelvar wrote:
> How do I get the name of a method?
> 
> def xxx
>   @WhatsMyName = ???
> end
> 
> 
> What should ??? be?  I want it to return "xxx".

I should mention that Method#name would work if you could get a hold of 
the Method object, but I don't see how you'd do that from within the 
method definition.

Best,
--
Marnen Laibow-Koser
http://www.marnen.org
marnen / marnen.org
-- 
Posted via http://www.ruby-forum.com/.