Module: Attributor::Type

Included in:
Boolean, Class, FieldSelector, Float, Numeric, Object, Polymorphic, 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



5
6
7
# File 'lib/attributor/type.rb', line 5

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