Class: RocketAMF::Types::TypedHash
- Inherits:
-
Hash
- Object
- Hash
- RocketAMF::Types::TypedHash
- Defined in:
- lib/rocketamf/types/typed_hash.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
-
#type ⇒ Object
readonly
Properties.
Instance Method Summary collapse
-
#initialize(type) ⇒ TypedHash
constructor
Methods.
Constructor Details
#initialize(type) ⇒ TypedHash
Methods
18 19 20 |
# File 'lib/rocketamf/types/typed_hash.rb', line 18 def initialize(type) @type = type end |
Instance Attribute Details
#type ⇒ Object (readonly)
Properties
12 13 14 |
# File 'lib/rocketamf/types/typed_hash.rb', line 12 def type @type end |