Class: Solargraph::ApiMap::Cache

Inherits:
Object
  • Object
show all
Defined in:
lib/solargraph/api_map/cache.rb

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



4
5
6
# File 'lib/solargraph/api_map/cache.rb', line 4

def initialize
  @signature_types = {}
end

Instance Method Details

#get_signature_type(signature, namespace, scope) ⇒ Object



7
8
9
# File 'lib/solargraph/api_map/cache.rb', line 7

def get_signature_type signature, namespace, scope
  @signature_types[[signature, namespace, scope]]
end

#set_signature_type(signature, namespace, scope, value) ⇒ Object



10
11
12
# File 'lib/solargraph/api_map/cache.rb', line 10

def set_signature_type signature, namespace, scope, value
  @signature_types[[signature, namespace, scope]] = value
end