Class: Standard::CreatesConfigStore::SetsTargetRubyVersion
- Inherits:
-
Object
- Object
- Standard::CreatesConfigStore::SetsTargetRubyVersion
- Defined in:
- lib/standard/creates_config_store/sets_target_ruby_version.rb
Instance Method Summary collapse
Instance Method Details
#call(options_config, standard_config) ⇒ Object
3 4 5 6 7 |
# File 'lib/standard/creates_config_store/sets_target_ruby_version.rb', line 3 def call(, standard_config) ["AllCops"]["TargetRubyVersion"] = floatify_version( max_rubocop_supported_version(standard_config[:ruby_version]) ) end |