Check Method Definition in Ruby
Published on 04 May 2021
This works for a method defined in a gem too.
m = User.method(:invite!)
m.source_location
This works for a method defined in a gem too.
m = User.method(:invite!)
m.source_location