Sha256: 8dc0f67d74d7a245f1331f4eba5a1f61ab34c617e2819a9ba00fd2b64970040a

Contents?: true

Size: 299 Bytes

Versions: 4

Compression:

Stored size: 299 Bytes

Contents

module AMF
  module Values #:nodoc:
    # Hash-like object that can store a type string. Used to preserve type information
    # for unmapped objects after deserialization.
    class TypedHash < Hash
      attr_reader :type

      def initialize type
        @type = type
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rack-amf-0.0.4 lib/amf/values/typed_hash.rb
rack-amf-0.0.3 lib/amf/values/typed_hash.rb
rack-amf-0.0.2 lib/amf/values/typed_hash.rb
rack-amf-0.0.1 lib/amf/values/typed_hash.rb