Module: AbstractType

Defined in:
lib/abstract_type.rb,
lib/abstract_type/version.rb

Overview

Module to allow class and methods to be abstract

Defined Under Namespace

Modules: ClassMethods

Constant Summary collapse

VERSION =
'0.0.2'.freeze

Class Method Summary collapse

Class Method Details

.included(descendant) ⇒ self

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Hook called when module is included

Parameters:

  • descendant (Module)

    the module or class including AbstractType

Returns:

  • (self)


14
15
16
17
18
# File 'lib/abstract_type.rb', line 14

def self.included(descendant)
  super
  descendant.extend(ClassMethods)
  self
end