Class: RuboCop::TargetRuby::Source Private
- Inherits:
-
Object
- Object
- RuboCop::TargetRuby::Source
- Defined in:
- lib/rubocop/target_ruby.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
A place where information about a target ruby version is found.
Direct Known Subclasses
BundlerLockFile, Default, GemspecFile, RuboCopConfig, RubyVersionFile
Instance Attribute Summary collapse
- #name ⇒ Object readonly private
- #version ⇒ Object readonly private
Instance Method Summary collapse
-
#initialize(config) ⇒ Source
constructor
private
A new instance of Source.
- #to_s ⇒ Object private
Constructor Details
#initialize(config) ⇒ Source
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Source.
27 28 29 30 |
# File 'lib/rubocop/target_ruby.rb', line 27 def initialize(config) @config = config @version = find_version end |
Instance Attribute Details
#name ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/rubocop/target_ruby.rb', line 25 def name @name end |
#version ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/rubocop/target_ruby.rb', line 25 def version @version end |
Instance Method Details
#to_s ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
32 33 34 |
# File 'lib/rubocop/target_ruby.rb', line 32 def to_s name end |