From: Albert Schlef Date: 2010-02-14T09:10:55+09:00 Subject: Re: What is the best exception to use for bad Data State? Christopher Dicely wrote: > [in Ruby] there doesn't seem to be a whole lot of reason to > actually define a pure virtual method. [...] > instead describe methods that must be > provided in child classes in the parent classes docs Documenting a method somewhere in the parent docs is like putting a needle inside a haystack. You'll find it there only if you specifically search for it. And you'll search for it only if you know it's supposed to exist, and this is probably not going to happen. Defining "abstract" (or "virtual") methods in Ruby is useful for documentation. -- Posted via http://www.ruby-forum.com/.