Class: Solargraph::YardMap::Cache

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

Instance Method Summary collapse

Constructor Details

#initializeCache

Returns a new instance of Cache.



6
7
8
# File 'lib/solargraph/yard_map/cache.rb', line 6

def initialize
  @path_pins = {}
end

Instance Method Details

#get_path_pins(path) ⇒ Object



14
15
16
# File 'lib/solargraph/yard_map/cache.rb', line 14

def get_path_pins path
  @path_pins[path]
end

#set_path_pins(path, pins) ⇒ Object



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

def set_path_pins path, pins
  @path_pins[path] = pins
end