Class: Standard::CreatesConfigStore
- Inherits:
-
Object
- Object
- Standard::CreatesConfigStore
- Defined in:
- lib/standard/creates_config_store.rb,
lib/standard/creates_config_store/assigns_rubocop_yaml.rb,
lib/standard/creates_config_store/configures_ignored_paths.rb,
lib/standard/creates_config_store/sets_target_ruby_version.rb,
lib/standard/creates_config_store/merges_user_config_extensions.rb
Defined Under Namespace
Classes: AssignsRubocopYaml, ConfiguresIgnoredPaths, MergesUserConfigExtensions, SetsTargetRubyVersion
Instance Method Summary collapse
- #call(standard_config) ⇒ Object
-
#initialize ⇒ CreatesConfigStore
constructor
A new instance of CreatesConfigStore.
Constructor Details
#initialize ⇒ CreatesConfigStore
Returns a new instance of CreatesConfigStore.
10 11 12 13 14 15 16 |
# File 'lib/standard/creates_config_store.rb', line 10 def initialize @assigns_rubocop_yaml = AssignsRubocopYaml.new @sets_target_ruby_version = SetsTargetRubyVersion.new @configures_ignored_paths = ConfiguresIgnoredPaths.new @combines_plugin_configs = Plugin::CombinesPluginConfigs.new @merges_user_config_extensions = MergesUserConfigExtensions.new end |
Instance Method Details
#call(standard_config) ⇒ Object
18 19 20 21 22 23 24 25 26 |
# File 'lib/standard/creates_config_store.rb', line 18 def call(standard_config) RuboCop::ConfigStore.new.tap do |config_store| = @assigns_rubocop_yaml.call(config_store, standard_config) @sets_target_ruby_version.call(, standard_config) @combines_plugin_configs.call(, standard_config) @merges_user_config_extensions.call(, standard_config) @configures_ignored_paths.call(, standard_config) end end |