Class: MappingType
- Inherits:
-
TypedVariable
- Object
- TypedVariable
- MappingType
- Defined in:
- lib/0xfacet/typed/mapping_type.rb
Defined Under Namespace
Classes: Proxy
Instance Attribute Summary
Attributes inherited from TypedVariable
Instance Method Summary collapse
-
#initialize ⇒ MappingType
constructor
A new instance of MappingType.
- #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 ⇒ MappingType
Returns a new instance of MappingType.
2 3 4 5 |
# File 'lib/0xfacet/typed/mapping_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/mapping_type.rb', line 7 def serialize value.serialize end |