New to Ruby and ROR and loving it each day, so here is my question since I have not idea how to google it (and I have tried :) )
we have method
def f
If the function is inside some class then you can do something like this:
class Car def drive(speed) end end car = Car.new method = car.method(:drive) p method.parameters #=> [[:req, :speed]]