Is there a way to get a list of methods that implement the Ruby method when calling this method?
For example:
def foo puts "foo" end def foo2 foo end
I want to know that when calling "foo2" it calls the 1st "foo" and the 2nd "puts" and the corresponding files in which these methods are defined. (If "puts" calls other methods, I would also like to know them)
Is it possible? and if so, how? I can say that my question is about finding method dependencies.
ruby
p.matsinopoulos
source share