私が持っているとしましょう
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
か?