I am using gem plivo
.When I am including plivo
library in my code, there are 2-3 class which are same which I am using and plivo
using, so my class conflicting.
Is there any way to solve this in ruby?
答案 0 :(得分:6)
您可以在包含plivo lib时使用命名空间。
例如:
module PlivoModule
module Plivo
#plivo code
end
end
用作:PlivoModule::Plivo::RestAPI.new