123456789_123456789_123456789_123456789_123456789_

Class: TZInfo::ConcurrentStringDeduper Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
Instance Chain:
Inherits: TZInfo::StringDeduper
Defined in: lib/tzinfo/string_deduper.rb

Overview

A thread-safe version of StringDeduper.

Class Attribute Summary

StringDeduper - Inherited

Class Method Summary

StringDeduper - Inherited

.new

Initializes a new StringDeduper.

Instance Method Summary

StringDeduper - Inherited

#dedupe,
#create_hash

Creates a Hash to store pooled String instances.

Instance Method Details

#create_hash(&block) (protected)

[ GitHub ]

  
# File 'lib/tzinfo/string_deduper.rb', line 53

def create_hash(&block)
  Concurrent::Map.new(&block)
end