Class: MappingType

Inherits:
TypedVariable show all
Defined in:
lib/0xfacet/typed/mapping_type.rb

Defined Under Namespace

Classes: Proxy

Instance Attribute Summary

Attributes inherited from TypedVariable

#on_change, #value

Instance Method Summary collapse

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

#initializeMappingType

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

#serializeObject



7
8
9
# File 'lib/0xfacet/typed/mapping_type.rb', line 7

def serialize
  value.serialize
end