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 89
def name
  "`#{TOOL_VERSIONS_FILENAME}`"
end

Private Instance Methods

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