From: "Thomas B." Date: 2008-08-30T03:25:37+09:00 Subject: Re: mysterious behavior of mixins Jim Xu wrote: > irb(main):171:0> class B < C > irb(main):172:1> include A > irb(main):173:1> end > TypeError: superclass mismatch for class B > from (irb):171 > from :0 Of course you cannot do it, because a moment ago you declared the method B as an immediate descendant of Object, and now you want it to be the descendant of C. The error has nothing to do with mixins. irb(main):046:0> class A;end => nil irb(main):047:0> class B;end => nil irb(main):048:0> class B