Class: Trax::Model::Attributes::Types::Array

Inherits:
Trax::Model::Attributes::Type show all
Defined in:
lib/trax/model/attributes/types/array.rb

Defined Under Namespace

Classes: Attribute, TypeCaster, Value

Class Method Summary collapse

Methods inherited from Trax::Model::Attributes::Type

inherited

Class Method Details

.define_attribute(source_klass, attribute_name, **options, &block) ⇒ Object



8
9
10
# File 'lib/trax/model/attributes/types/array.rb', line 8

def self.define_attribute(source_klass, attribute_name, **options, &block)
  klass.fields_module.const_set(attributes_klass_name, ::Class.new(::Trax::Model::Attributes[:array]::Value))
end