Module: Attributor::Type

Included in:
Boolean, Class, FieldSelector, Float, Numeric, Object, Regexp, String, Symbol, Tempfile, Temporal, Time, URI
Defined in:
lib/attributor/type.rb

Overview

It is the abstract base class to hold an attribute, both a leaf and a container (hash/Array…) TODO: should this be a mixin since it is an abstract class?

Defined Under Namespace

Modules: ClassMethods

Class Method Summary collapse

Class Method Details

.included(klass) ⇒ Object


7
8
9
# File 'lib/attributor/type.rb', line 7

def self.included(klass)
  klass.extend(ClassMethods)
end