Thomas Wieczorek
2/28/2008 1:23:00 PM
There is no keyword to create abstract classes, but you can force the
implementation of some methods if you need to.
class Foo
def bar
raise NotImplementedError
end
end
You will only get an exception at runtime, when something tries to
call it. So you should override it in a subclass.
class Bar < Foo
def bar
"Foobar"
end
end