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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -