Class: RuboCop::TargetRuby::ToolVersionsFile Private
Do not use. This class is for internal use only.
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Class Chain:
self,
RubyVersionFile ,
Source
|
|
Instance Chain:
self,
RubyVersionFile ,
Source
|
|
Inherits: |
RuboCop::TargetRuby::RubyVersionFile
|
Defined in: | lib/rubocop/target_ruby.rb |
Overview
The target ruby version may be found in a .tool-versions file, in a line
starting with ruby
.
Constant Summary
-
TOOL_VERSIONS_FILENAME =
# File 'lib/rubocop/target_ruby.rb', line 171'.tool-versions'
-
TOOL_VERSIONS_PATTERN =
# File 'lib/rubocop/target_ruby.rb', line 172/^(?:ruby )(?<version>\d+\.\d+)/.freeze
RubyVersionFile
- Inherited
Class Method Summary
Instance Attribute Summary
Instance Method Summary
RubyVersionFile
- Inherited
Source
- Inherited
Instance Method Details
#filename (private)
[ GitHub ]# File 'lib/rubocop/target_ruby.rb', line 180
def filename TOOL_VERSIONS_FILENAME end
#name
[ GitHub ]# File 'lib/rubocop/target_ruby.rb', line 174
def name "`#{TOOL_VERSIONS_FILENAME}`" end
#pattern (private)
[ GitHub ]# File 'lib/rubocop/target_ruby.rb', line 184
def pattern TOOL_VERSIONS_PATTERN end