From: sto.mar@... Date: 2013-07-24T21:51:17+09:00 Subject: Re: class <=> module Am 24.07.2013 14:35, schrieb Josh Cheek: > On Wed, Jul 24, 2013 at 1:10 AM, > wrote: > > > And you forgot to mention: classes can inherit only from a single other > class (a conscious decision by Matz), but you can include many modules. > Seems difficult to unify that in one concept. > > > That seems inaccurate to me: > > C1 = Class.new Object > C2 = Class.new C1 > C3 = Class.new C2 I was alluding to multiple inheritance, meaning a class inherits _directly_ from more than one superclass. > M1 = Module.new > M2 = Module.new > C4 = Class.new { include M2, M1 } Regards, Marcus --