Class: RuboCop::TargetRuby::RuboCopEnvVar Private
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 by setting the
RUBOCOP_TARGET_RUBY_VERSION
environment variable.
Class Method Summary
Instance Attribute Summary
Instance Method Summary
Instance Method Details
#find_version (private)
[ GitHub ]# File 'lib/rubocop/target_ruby.rb', line 46
def find_version ENV.fetch('RUBOCOP_TARGET_RUBY_VERSION', nil)&.to_f end
#name
[ GitHub ]# File 'lib/rubocop/target_ruby.rb', line 40
def name '`RUBOCOP_TARGET_RUBY_VERSION` environment variable' end