abstract.rb

Path: lib/facet/module/abstract.rb
Last Update: Mon Feb 21 15:56:32 EST 2005

Creates a method that requires to be overridding. If it not overridden and called upon a TypeError will be raised.

 require 'facet/module/abstract'

 class C
   abstract :a
 end

 c = C.new
 c.a  #=> Error: undefined abstraction #a

[Validate]