I came from Java, and now I am working more with Ruby.
One language feature I am not familiar with is the module
. I am wondering what exactly is a module
and when do you use one, and why use a module
over a class
?
Question&Answers:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…