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.
- #repository ⇒ Object
Methods inherited from Solargraph::RbsMap
#path_pin, #path_pins, #resolved?
Methods included from Conversions
Constructor Details
#initialize(library) ⇒ StdlibMap
Returns a new instance of StdlibMap.
15 16 17 18 19 20 21 22 23 |
# File 'lib/solargraph/rbs_map/stdlib_map.rb', line 15 def initialize library cache = Cache.load('stdlib', "#{library}.ser") if cache pins.replace cache else super Cache.save('stdlib', "#{library}.ser", pins) end end |
Class Method Details
Instance Method Details
#repository ⇒ Object
31 32 33 |
# File 'lib/solargraph/rbs_map/stdlib_map.rb', line 31 def repository @repository ||= RBS::Repository.new end |