Class: RuboCop::TargetRuby::RubyVersionFile

Inherits:
Source
  • Object
show all
Defined in:
lib/rubocop/target_ruby.rb

Overview

The target ruby version may be found in a .ruby-version file.

Constant Summary collapse

FILENAME =
'.ruby-version'

Instance Attribute Summary

Attributes inherited from Source

#version

Instance Method Summary collapse

Methods inherited from Source

#initialize, #to_s

Constructor Details

This class inherits a constructor from RuboCop::TargetRuby::Source

Instance Method Details

#nameObject



45
46
47
# File 'lib/rubocop/target_ruby.rb', line 45

def name
  "`#{FILENAME}`"
end