123456789_123456789_123456789_123456789_123456789_

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:
Instance Chain:
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

RubyVersionFile - Inherited

RUBY_VERSION_FILENAME, RUBY_VERSION_PATTERN

Class Method Summary

Source - Inherited

Instance Attribute Summary

Source - Inherited

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