K
Keith Sader
I'm trying to find out the number and name of a method's parameters.=20
I've googled for 'ruby method parameter introspection' and come up
with almost nothing. Is there a way to ask a method for the
parameters it takes?
Could this way also show me the method overloads?
foo()
foo(param1)
foo(param1, param2)
etc.
thanks,
I've googled for 'ruby method parameter introspection' and come up
with almost nothing. Is there a way to ask a method for the
parameters it takes?
Could this way also show me the method overloads?
foo()
foo(param1)
foo(param1, param2)
etc.
thanks,