Tuesday, 16 September 2008

Ruby thoughts ... !!! Modules and Super classes

Ruby Consider Modules as super classes [Internally]. But My confusion is that there can be many modules either included or extended to a class where as only one Parent class is allowed [as in java] in Ruby... ? why.

Some thing to do with the meta class and the super pointers ..?


Ruby thoughts ... !!! Modules and Classes

Actually... the Module class of module is the superclass of the Class class of class. Got that? No? - good Now you have a reason to spent some time on Ruby :)