class RuboCop::TargetRuby::ToolVersionsFile

The target ruby version may be found in a .tool-versions file, in a line starting with ‘ruby`. @api private

Constants

TOOL_VERSIONS_FILENAME
TOOL_VERSIONS_PATTERN

Public Instance Methods

name() click to toggle source
# File lib/rubocop/target_ruby.rb, line 174
def name
  "`#{TOOL_VERSIONS_FILENAME}`"
end

Private Instance Methods

filename() click to toggle source
# File lib/rubocop/target_ruby.rb, line 180
def filename
  TOOL_VERSIONS_FILENAME
end
pattern() click to toggle source
# File lib/rubocop/target_ruby.rb, line 184
def pattern
  TOOL_VERSIONS_PATTERN
end