Skip to content
No description or website provided.
Fetching latest commit…
Cannot retrieve the latest commit at this time.


This is a small standalone gem featuring a module ripped out from axiom. It allows to declare abstract_type classes and modules in an unobstrusive way.

Gem Version Build Status Dependency Status Code Climate Coverage Status


class Foo
  include AbstractType

  # Declare abstract instance method
  abstract_method :bar

  # Declare abstract singleton method
  abstract_singleton_method :baz
end  # raises NotImplementedError: Foo is an abstract type
Foo.baz  # raises NotImplementedError: Foo.baz is not implemented

# Subclassing to allow instantiation
class Baz < Foo; end

object =  # raises NotImplementedError: Baz#bar is not implemented



See for details.


Copyright © 2009-2013 Dan Kubb. See LICENSE for details.

Something went wrong with that request. Please try again.