123456789_123456789_123456789_123456789_123456789_

Class: RuboCop::TargetRuby::RuboCopConfig Private

Do not use. This class is for internal use only.
Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Class Chain:
self, Source
Instance Chain:
self, Source
Inherits: RuboCop::TargetRuby::Source
Defined in: lib/rubocop/target_ruby.rb

Overview

The target ruby version may be configured in RuboCop’s config.

Class Method Summary

Source - Inherited

Instance Attribute Summary

Source - Inherited

Instance Method Summary

Source - Inherited

Instance Method Details

#find_version (private)

[ GitHub ]

  
# File 'lib/rubocop/target_ruby.rb', line 46

def find_version
  @config.for_all_cops['TargetRubyVersion']&.to_f
end

#name

[ GitHub ]

  
# File 'lib/rubocop/target_ruby.rb', line 40

def name
  "`TargetRubyVersion` parameter (in #{@config.smart_loaded_path})"
end