Any way to extract the method signature from Ruby?

I want to parse this module MiniTest::Assertions

and get an array of string like this:

assert(test, msg = nil)

assert_empty(obj, msg = nil)

assert_equal(exp, act, msg = nil)

assert_in_delta(exp, act, delta = 0.001, msg = nil)

      

How can i do this? Any built-in method? precious stone? Using rdoc?

+3


source to share





All Articles