M
Mario Ruiz
Hi,
I have two different modules that contain a few methods with the same
name so I cannot include the modules in the code and I need to do
something like:
module Module1
def myMethod
puts "hi"
end
def others
end
end
module Module2
def myMethod
puts "more hi"
end
end
a=MyModule1.myMethod
b=MyModule2.myMethod
But it's not working, the error is: undefined method 'myMethod'
any idea??
Thanks.
I have two different modules that contain a few methods with the same
name so I cannot include the modules in the code and I need to do
something like:
module Module1
def myMethod
puts "hi"
end
def others
end
end
module Module2
def myMethod
puts "more hi"
end
end
a=MyModule1.myMethod
b=MyModule2.myMethod
But it's not working, the error is: undefined method 'myMethod'
any idea??
Thanks.