Class: Solargraph::Rspec::Config
- Inherits:
-
Object
- Object
- Solargraph::Rspec::Config
- Defined in:
- lib/solargraph/rspec/config.rb
Overview
Instance Attribute Summary collapse
Instance Method Summary collapse
- #example_methods ⇒ Array<Symbol>
-
#initialize(solargraph_config = Solargraph::Workspace::Config.new('./')) ⇒ Config
constructor
A new instance of Config.
- #let_methods ⇒ Array<Symbol>
Constructor Details
#initialize(solargraph_config = Solargraph::Workspace::Config.new('./')) ⇒ Config
Returns a new instance of Config.
10 11 12 13 |
# File 'lib/solargraph/rspec/config.rb', line 10 def initialize(solargraph_config = Solargraph::Workspace::Config.new('./')) @solargraph_config = solargraph_config Solargraph.logger.debug "[RSpec] Solargraph config: #{raw_data}" end |
Instance Attribute Details
#solargraph_config ⇒ Solargraph::Workspace::Config (readonly)
16 17 18 |
# File 'lib/solargraph/rspec/config.rb', line 16 def solargraph_config @solargraph_config end |
Instance Method Details
#example_methods ⇒ Array<Symbol>
24 25 26 |
# File 'lib/solargraph/rspec/config.rb', line 24 def example_methods (Rspec::EXAMPLE_METHODS + additional_example_methods).map(&:to_sym) end |
#let_methods ⇒ Array<Symbol>
19 20 21 |
# File 'lib/solargraph/rspec/config.rb', line 19 def let_methods (Rspec::LET_METHODS + additional_let_methods).map(&:to_sym) end |