From: Thomas Adam Date: 2007-10-18T04:41:26+09:00 Subject: Re: abstract superclasses On 17/10/2007, Giles Bowkett wrote: > I sometimes use the Java thing of an abstract superclass in Ruby. I > usually just set up the abstract parent so that it'll break if used > directly. Is it better to just use Modules? Have other people run into > this? I'd use a Module, yes. Or a class: class SomeClassMimickingAbstract private_class_method :new end But you don't need to think this way in Ruby -- unlike Java, Ruby is weakly typed. -- Thomas Adam