From: Logan Capaldo Date: 2006-09-08T06:49:33+09:00 Subject: Re: get the name of a method's parameter On Sep 7, 2006, at 3:53 PM, Matt Todd wrote: > def meth(argy) > >> p local_variables >> end > > > The problem with this solution is that it does not get the name of the > variable that it was called with, just what it's assigned to (and not > entirely useful, though definitely not useless). I think Le is > asking about > how to get the name of the variable where the value is being copied > to argy > from. > > M.T. I don't think so, the OP said: On Sep 7, 2006, at 2:35 AM, Le Huy wrote: > It is useful for documenting a class and doing editor with code > completion > > -- > Posted via http://www.ruby-forum.com/. > which leaves me to believe he's interested in the parameter names for the method definition. (It would be silly (well maybe just extreme) to document every callsite).