Class: Solargraph::RbsMap::StdlibMap
- Inherits:
-
Solargraph::RbsMap
- Object
- Solargraph::RbsMap
- Solargraph::RbsMap::StdlibMap
- Defined in:
- lib/solargraph/rbs_map/stdlib_map.rb
Overview
Ruby stdlib pins
Instance Attribute Summary
Attributes inherited from Solargraph::RbsMap
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(library) ⇒ StdlibMap
constructor
A new instance of StdlibMap.
Methods inherited from Solargraph::RbsMap
from_gemspec, #path_pin, #path_pins, #repository, #resolved?
Methods included from Conversions
Constructor Details
#initialize(library) ⇒ StdlibMap
Returns a new instance of StdlibMap.
14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/solargraph/rbs_map/stdlib_map.rb', line 14 def initialize library cache = Cache.load('stdlib', "#{library}.ser") if cache pins.replace cache @resolved = true else super return unless resolved? Cache.save('stdlib', "#{library}.ser", pins) end end |