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)
- - (Object) add_obj(str)
-
- (StringCache) initialize
constructor
A new instance of StringCache.
Constructor Details
- (StringCache) initialize
A new instance of StringCache
446 447 448 |
# File 'lib/rocketamf/pure/serializer.rb', line 446 def initialize @cache_index = 0 end |
Instance Method Details
- (Object) add_obj(str)
450 451 452 453 |
# File 'lib/rocketamf/pure/serializer.rb', line 450 def add_obj str self[str] = @cache_index @cache_index += 1 end |