Class: Solargraph::YardMap::Cache
- Inherits:
-
Object
- Object
- Solargraph::YardMap::Cache
- Defined in:
- lib/solargraph/yard_map/cache.rb
Instance Method Summary collapse
- #get_path_pins(path) ⇒ Object
-
#initialize ⇒ Cache
constructor
A new instance of Cache.
- #set_path_pins(path, pins) ⇒ Object
Constructor Details
#initialize ⇒ Cache
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 |