我在课堂上包含了两个不同的模块库。两者都有方法test_method
。我如何明确地使用一个而不是另一个?
class User
include Calculus::Math #a module
include Algebra::Math::Misc #a module
#perform_test is defined in both Calculus::Math and Algebra::Math::Misc
perform_test: 1
#Calculus::Math::perform_test: 1 #This doesn't work
end
谢谢