From: cypher.dp@... Date: 2007-07-12T09:43:38+09:00 Subject: Re: Abstract methods in ruby ? Thanks a lot for the warm welcome, James :) 2007/7/12, James Edward Gray II : > On Jul 11, 2007, at 5:40 PM, cypher.dp@gmail.com wrote: > > > How do you implement something like the "abstract" keyword in Java ? > > Or: Is there a technique to force a subclass to implement a special > > method ? > > One way is: > > class Parent > def abstract_method > raise NotImplementedError > end > end > > You may just want to skip this step altogether though, since an > exception toss is the default behavior. > > Welcome to the word of dynamic typing. ;) > > James Edward Gray II > >