Sha256: 1d81420dad5f4b887c574546f66b4bfede979dc291bba6b39e0acc490b46a1aa

Contents?: true

Size: 238 Bytes

Versions: 2

Compression:

Stored size: 238 Bytes

Contents

module RocketAMF
  module Pure
    class StringCache < Hash #:nodoc:
      def initialize
        @cache_index = 0
      end

      def add_obj(str)
        self[str]    = @cache_index
        @cache_index += 1
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
mrpin-rocketamf-2.0.1 lib/rocketamf/pure/helpers/string_cache.rb
mrpin-rocketamf-2.0.0 lib/rocketamf/pure/helpers/string_cache.rb