On 17/10/2007, Giles Bowkett <gilesb / gmail.com> 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