Class: Slimembedcop::ConfigGenerator
- Inherits:
-
Object
- Object
- Slimembedcop::ConfigGenerator
- Defined in:
- lib/slimembedcop/config_generator.rb
Overview
Generates a configuration for RuboCop.
Instance Method Summary collapse
-
#initialize(option) ⇒ ConfigGenerator
constructor
A new instance of ConfigGenerator.
- #run ⇒ Object
Constructor Details
#initialize(option) ⇒ ConfigGenerator
8 9 10 11 |
# File 'lib/slimembedcop/config_generator.rb', line 8 def initialize(option) @default_config_path = option.default_config_path @forced_config_path = option.forced_config_path end |
Instance Method Details
#run ⇒ Object
13 14 15 |
# File 'lib/slimembedcop/config_generator.rb', line 13 def run ::RuboCop::ConfigLoader.merge_with_default(merged_config, loaded_path) end |