Class: RocketAMF::Pure::SerializerCache::StringCache
- Inherits:
-
Hash
- Object
- Hash
- RocketAMF::Pure::SerializerCache::StringCache
- Defined in:
- lib/rocketamf/pure/serializer.rb
Overview
:nodoc:
Instance Method Summary collapse
- #add_obj(str) ⇒ Object
-
#initialize ⇒ StringCache
constructor
A new instance of StringCache.
Constructor Details
#initialize ⇒ StringCache
Returns a new instance of StringCache.
360 361 362 |
# File 'lib/rocketamf/pure/serializer.rb', line 360 def initialize @cache_index = 0 end |
Instance Method Details
#add_obj(str) ⇒ Object
364 365 366 367 |
# File 'lib/rocketamf/pure/serializer.rb', line 364 def add_obj str self[str] = @cache_index @cache_index += 1 end |