假设我有
module A
include module B
class C
def methodC
B.methodB
end
def self.methodD
somemethod
end
end
end
module B
def self.methodB
A::C.methodD
end
end
instance = A::C.new
如何避免使用此类级别的方法(self)?事实上,我怎么能打电话methodB
呢instance
?