Class: Solargraph::RbsMap::CoreMap
- Inherits:
-
Object
- Object
- Solargraph::RbsMap::CoreMap
- Defined in:
- lib/solargraph/rbs_map/core_map.rb
Overview
Ruby core pins
Constant Summary collapse
- FILLS_DIRECTORY =
File.join(File.dirname(__FILE__), '..', '..', '..', 'rbs', 'fills')
Instance Method Summary collapse
-
#initialize ⇒ CoreMap
constructor
A new instance of CoreMap.
- #pins ⇒ Enumerable<Pin::Base>
- #resolved? ⇒ Boolean
Constructor Details
#initialize ⇒ CoreMap
Returns a new instance of CoreMap.
15 |
# File 'lib/solargraph/rbs_map/core_map.rb', line 15 def initialize; end |
Instance Method Details
#pins ⇒ Enumerable<Pin::Base>
18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
# File 'lib/solargraph/rbs_map/core_map.rb', line 18 def pins return @pins if @pins @pins = [] cache = PinCache.deserialize_core if cache @pins.replace cache else loader.add(path: Pathname(FILLS_DIRECTORY)) @pins = conversions.pins @pins.concat RbsMap::CoreFills::ALL processed = ApiMap::Store.new(pins).pins.reject { |p| p.is_a?(Solargraph::Pin::Reference::Override) } @pins.replace processed PinCache.serialize_core @pins end @pins end |
#resolved? ⇒ Boolean
9 10 11 |
# File 'lib/solargraph/rbs_map/core_map.rb', line 9 def resolved? true end |