Class: Trax::Model::Attributes::Types::Array
- Inherits:
-
Trax::Model::Attributes::Type
- Object
- Trax::Model::Attributes::Type
- Trax::Model::Attributes::Types::Array
- 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
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, **, &block) klass.fields_module.const_set(attributes_klass_name, ::Class.new(::Trax::Model::Attributes[:array]::Value)) end |