How could I made subclass inherit included module from parent in ruby? -
how can make subclasses inherit parent's include code directly, without having include same module time?
for example:
class p include ... end class c1 include ... end class c2 include ... end
as turns out made big mistake, not cause of bug.... sorry asking stupid question.... :(
thank guys~~
module includable end class parent include includable end class childone < parent end class childtwo < parent end
without having clearer understanding of question, inherit parent, , parent includes module, children take advantage of that.
Comments
Post a Comment