Sha256: c4dbfc2ad30dc5e212ef516291616ce57393f4c6fa62d1aa2b5f27bea8291d80

Contents?: true

Size: 376 Bytes

Versions: 2

Compression:

Stored size: 376 Bytes

Contents

module RocketAMF
  module Types #:nodoc:

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

      #
      # Properties
      #

      attr_reader :type

      #
      # Methods
      #

      def initialize(type)
        @type = type
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mrpin-rocketamf-2.0.1 lib/rocketamf/types/typed_hash.rb
mrpin-rocketamf-2.0.0 lib/rocketamf/types/typed_hash.rb