Class: AMF::HashWithType
- Inherits:
-
Hash
- Object
- Hash
- AMF::HashWithType
- Defined in:
- lib/amf/common/hash_with_type.rb
Overview
Hash-like object that can store a type string. Used to preserve type information for unmapped objects after deserialization.
Instance Attribute Summary collapse
-
#class_type ⇒ Object
readonly
Properties.
Instance Method Summary collapse
-
#initialize(type) ⇒ HashWithType
constructor
Methods.
Constructor Details
#initialize(type) ⇒ HashWithType
Methods
16 17 18 |
# File 'lib/amf/common/hash_with_type.rb', line 16 def initialize(type) @class_type = type end |
Instance Attribute Details
#class_type ⇒ Object (readonly)
Properties
10 11 12 |
# File 'lib/amf/common/hash_with_type.rb', line 10 def class_type @class_type end |