It depends what you want to do - do you need to use the superclass  
separately?

Julian



Learn Ruby on Rails! Check out the FREE VIDS (for a limited time)  
VIDEO #3 out NOW!
http://sensei.zenunit.com/



On 09/04/2008, at 3:32 PM, Shin guey Wong wrote:

> Julian Leviston wrote:
>> A module is simply a place where you can store methods.
>>
>> Thus, you can include a module as a mixin in a class, and it will get
>> all the methods.
>>
>
> Yes, but we can achieve the same thing by inherit a class which will  
> get
> all the methods also.I know we can mixin multiple classes but only
> inherit 1 class.
> If there is only 1 class/module, which we should use? create a  
> module or
> class?
>
> -- 
> Posted via http://www.ruby-forum.com/.
>