I have defined a method in module A. I want to call the same method from the moduleB
module A
included do
def self.some_func
end
end
end
module B
some_func # It raise error (NoMethodError: undefined method). How solve this?
end
module C
include A
include B
end
This doesn't work. Is it possible to call a function that is defined by one module in another module?