Class: Solargraph::RbsMap::Conversions
- Inherits:
-
Object
- Object
- Solargraph::RbsMap::Conversions
- Includes:
- Logging
- Defined in:
- lib/solargraph/rbs_map/conversions.rb
Overview
Functions for converting RBS declarations to Solargraph pins
Defined Under Namespace
Classes: Context
Constant Summary
Constants included from Logging
Logging::DEFAULT_LOG_LEVEL, Logging::LOG_LEVELS
Instance Attribute Summary collapse
-
#loader ⇒ Object
readonly
Returns the value of attribute loader.
- #pins ⇒ Array<Pin::Base> readonly
Instance Method Summary collapse
-
#initialize(loader:) ⇒ Conversions
constructor
A new instance of Conversions.
Methods included from Logging
Constructor Details
#initialize(loader:) ⇒ Conversions
Returns a new instance of Conversions.
25 26 27 28 29 |
# File 'lib/solargraph/rbs_map/conversions.rb', line 25 def initialize(loader:) @loader = loader @pins = [] load_environment_to_pins(loader) end |
Instance Attribute Details
#loader ⇒ Object (readonly)
Returns the value of attribute loader.
31 32 33 |
# File 'lib/solargraph/rbs_map/conversions.rb', line 31 def loader @loader end |
#pins ⇒ Array<Pin::Base> (readonly)
34 35 36 |
# File 'lib/solargraph/rbs_map/conversions.rb', line 34 def pins @pins end |