Minixs are useful, when the proper inheritance can't be applied, for example, then a class must be inherit properties of the two other classes, therefore you can just use the inheritance mechanics here:
module A
class C
def self.helper(y)
y + 7
end
end
class C1 < C
def self.grovel(x)
return self.helper(x) + 3
end
end
class C2 < C
def self.grovel(x)
return self.helper(x) + 12
end
end
end
puts A::C1.grovel(7)
puts A::C2.grovel(25)