Class: Standard::Plugin::CombinesPluginConfigs
- Inherits:
-
Object
- Object
- Standard::Plugin::CombinesPluginConfigs
- Defined in:
- lib/standard/plugin/combines_plugin_configs.rb
Instance Method Summary collapse
- #call(options_config, standard_config) ⇒ Object
-
#initialize ⇒ CombinesPluginConfigs
constructor
A new instance of CombinesPluginConfigs.
Constructor Details
#initialize ⇒ CombinesPluginConfigs
Returns a new instance of CombinesPluginConfigs.
4 5 6 7 |
# File 'lib/standard/plugin/combines_plugin_configs.rb', line 4 def initialize @initializes_plugins = InitializesPlugins.new @merges_plugins_into_rubocop_config = MergesPluginsIntoRubocopConfig.new end |
Instance Method Details
#call(options_config, standard_config) ⇒ Object
9 10 11 12 |
# File 'lib/standard/plugin/combines_plugin_configs.rb', line 9 def call(, standard_config) plugins = @initializes_plugins.call(standard_config[:plugins]) @merges_plugins_into_rubocop_config.call(, standard_config, plugins, permit_merging: true) end |