Class: Sevencop::ConfigLoader
- Inherits:
-
Object
- Object
- Sevencop::ConfigLoader
- Defined in:
- lib/sevencop/config_loader.rb
Overview
Merge default RuboCop config with plugin config.
Class Method Summary collapse
Instance Method Summary collapse
- #call ⇒ RuboCop::Config
-
#initialize(path:) ⇒ ConfigLoader
constructor
A new instance of ConfigLoader.
Constructor Details
#initialize(path:) ⇒ ConfigLoader
Returns a new instance of ConfigLoader.
17 18 19 |
# File 'lib/sevencop/config_loader.rb', line 17 def initialize(path:) @path = path end |
Class Method Details
.call(path:) ⇒ RuboCop::Config
11 12 13 |
# File 'lib/sevencop/config_loader.rb', line 11 def call(path:) new(path: path).call end |
Instance Method Details
#call ⇒ RuboCop::Config
22 23 24 25 26 27 |
# File 'lib/sevencop/config_loader.rb', line 22 def call ::RuboCop::ConfigLoader.merge_with_default( plugin_config, @path ) end |