From: Marnen Laibow-Koser Date: 2010-01-18T07:38:43+09:00 Subject: Re: name of method? 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". Then ??? should be "xxx". No shortcut here, I think. Also, @WhatsMyName is a poor variable name. You want @whats_my_name or (better) @name. Best, --  Marnen Laibow-Koser http://www.marnen.org marnen@marnen.org -- Posted via http://www.ruby-forum.com/.