Method: Memory::Cache#initialize
- Defined in:
- lib/memory/cache.rb
#initialize ⇒ Cache
Returns a new instance of Cache.
25 26 27 28 29 30 |
# File 'lib/memory/cache.rb', line 25 def initialize @gem_guess_cache = Hash.new @location_cache = Hash.new { |h, k| h[k] = Hash.new.compare_by_identity } @class_name_cache = Hash.new.compare_by_identity @string_cache = Hash.new end |