I have a model with a class method.
Like:
class School < ActiveRecord::Base
def self.mymethod
end
def instance_something
end
end
How can I find the source_location of a class method in Ruby?
If I want the source location of "instance_something" I do
School.new.method(:instance_something).source_location
But I can't do that with class method.
Any help?