Class: ArrayType
- Inherits:
-
TypedVariable
- Object
- TypedVariable
- ArrayType
- Defined in:
- lib/0xfacet/typed/array_type.rb
Defined Under Namespace
Classes: Proxy
Instance Attribute Summary
Attributes inherited from TypedVariable
Instance Method Summary collapse
-
#initialize ⇒ ArrayType
constructor
A new instance of ArrayType.
- #serialize ⇒ Object
Methods inherited from TypedVariable
#!=, #==, #as_json, create, create_or_validate, #deserialize, #eql?, #hash, #method_missing, #respond_to_missing?, #to_s
Methods included from AttrPublicReadPrivateWrite
#attr_public_read_private_write
Constructor Details
#initialize ⇒ ArrayType
Returns a new instance of ArrayType.
2 3 4 5 |
# File 'lib/0xfacet/typed/array_type.rb', line 2 def initialize(...) super(...) value.on_change = on_change end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class TypedVariable
Instance Method Details
#serialize ⇒ Object
7 8 9 |
# File 'lib/0xfacet/typed/array_type.rb', line 7 def serialize value.data.map(&:serialize) end |