C
Chris Gunnels
Is there a way to find the parameters of each method in a class? For
instance I have a class like:
class CoolClass
def meth_one(p1,p2)
...
end
def meth_two(p1,p2,p3)
...
end
end
I can run:
cc = CoolClass.new
cc.public_methods(false)
and it will return an array of all the public methods
(['meth_one','meth_two']).
Is there a way to find the parameters of each method from the example
above?
instance I have a class like:
class CoolClass
def meth_one(p1,p2)
...
end
def meth_two(p1,p2,p3)
...
end
end
I can run:
cc = CoolClass.new
cc.public_methods(false)
and it will return an array of all the public methods
(['meth_one','meth_two']).
Is there a way to find the parameters of each method from the example
above?