From: Tim Connor Date: 2007-12-13T10:48:16+09:00 Subject: Re: Abstract -- what's the Ruby way? > Here is one way. Its not very satisfying, as you have no way to access > the initialize method on any parent classes of the Animal class (such > as ActiveRecord)... > Is it possible to pull of maybe using some clever passing back and forth up through the super chain? raise 'Invalid instantiation of class' unless child_class_name.constantize <= Animal or maybe detecting caller and raising unless it's a child class?