Ruby中有没有办法在方法中找到调用方法名?
例如:
class Test def self.foo Fooz.bar end end class Fooz def self.bar # get Test.foo or foo end end
ruby
ruby ×1