Class: AMF::HashWithType

Inherits:
Hash
  • Object
show all
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

Instance Method Summary collapse

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_typeObject (readonly)

Properties



10
11
12
# File 'lib/amf/common/hash_with_type.rb', line 10

def class_type
  @class_type
end