Ruby has no way to track “who” wrote the code to define a method : The
definition of a method can occur while executing or requiring something
from the Ruby stdlib, or some Gem, or some Code you wrote, and this type
of authorship is hard (maybe impossible) to track.
You can track all new methods added after a certain time in program
execution, by recording first a list of all methods, and later - when
you want to know the changes -, recalculate the list of methods and
output the difference. As a side effect, you also would get the methods
which have been removed from an object (a rare, but possible case).
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.