From: Rick DeNatale Date: 2009-08-28T00:28:40+09:00 Subject: Re: Calling method from another class On Thu, Aug 27, 2009 at 1:59 AM, Kostas Lps wrote: > So a module is a considered to be a class? Or is something completely > different?? Well in a classical sense Class is a subclass of Module, so someone who viewed the world as class=type hierarchies would say that a class was a module. But there a things which modules can be used for which classes cannot particularly modules can be included in other modules and classes, classes cannot. So in that sense classes aren't modules. Classes can have instances, whereas modules cannot. If you do think of classes as types and class inheritance as type inheritance, you will at times find counter examples like this in ruby. Inheritance in Ruby provides overrideable implementation decoupled from the structure of instance data because of the way Ruby dynamically finds and adds instance variables as methods need them. -- Rick DeNatale Blog: http://talklikeaduck.denhaven2.com/ Twitter: http://twitter.com/RickDeNatale WWR: http://www.workingwithrails.com/person/9021-rick-denatale LinkedIn: http://www.linkedin.com/in/rickdenatale