Question: what is the difference between class and module?
Answer: The Difference Between a Class and a Module Basically, a class can be instantiated but a module cannot. A module will never be anything other than a library of methods. A class can be so much more -- it can hold its state (by keeping track of instance variables) and be duplicated as many times as you want.