最佳答案
在 Ruby 中有没有办法在方法中找到调用方法的名称?
例如:
class Test
def self.foo
Fooz.bar
end
end
class Fooz
def self.bar
# get Test.foo or foo
end
end