Class: Solargraph::YardMap::Cache

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

Instance Method Summary collapse

Constructor Details

#initializeCache


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

def initialize
  @path_pins = {}
end

Instance Method Details

#get_path_pins(path) ⇒ Object


12
13
14
# File 'lib/solargraph/yard_map/cache.rb', line 12

def get_path_pins path
  @path_pins[path]
end

#set_path_pins(path, pins) ⇒ Object


8
9
10
# File 'lib/solargraph/yard_map/cache.rb', line 8

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