From: listrecv@... Date: 2006-08-07T17:10:11+09:00 Subject: Re: Superclass mismatches Thanks for the explanation. I'm still stumped - it seems like I have two classes with the same name: irb(main):015:0> ResellerCategory => Taxonomy::ResellerCategory irb(main):016:0> ResellerCategory.superclass => Taxonomy::Category irb(main):017:0> ResellerCategory.superclass == Taxonomy::Category => false Huh? irb(main):018:0> ResellerCategory.superclass.object_id => 46413760 irb(main):019:0> Taxonomy::Category.object_id => 47673490 How did that happen? irb(main):020:0> module Taxonomy; class ResellerCategory < Category; end ; end TypeError: superclass mismatch for class ResellerCategory irb(main):023:0> module Taxonomy; class ResellerCategory < ResellerCategory.superclass; end ; end => nil My questions are: 1) How did that happen? It seems like 1 != 1 2) More importantly, how can I stop this error from happening? (It's caused when the file defining ResellerCategory is loaded a second time)