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 ..?


http://www.ruby-forum.com/user/edit?user_id=9378&key=07a73e03b847d2d6cc2767d9dde21829

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 :)