How can you define c method that is accessible from class One and Two?
module MyGem
class One
def a
c
end
end
class Two
def b
c
end
end
end
There is few ways, for example inheritance vs mixins.
Using mixins, you can define a Module
and include in your classes.
module MyGem
class One
include Mixin
def a
c
end
end
class Two
include Mixin
def b
c
end
end
module Mixin
def c
...
end
end
end