Class: Devtools::Config
- Inherits:
-
Object
- Object
- Devtools::Config
- Defined in:
- lib/devtools/config.rb
Overview
Abstract base class of tool configuration
Defined Under Namespace
Classes: Devtools, Flay, Flog, Mutant, Reek, Rubocop, Yardstick
Constant Summary collapse
- DEFAULT_CONFIG =
Represent no configuration
{}.freeze
Instance Attribute Summary collapse
-
#project ⇒ Project
readonly
private
Return project.
Instance Method Summary collapse
-
#config_file ⇒ String
private
Return config path.
-
#initialize(project) ⇒ Project
constructor
private
Initialize object.
Constructor Details
#initialize(project) ⇒ Project
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.
Initialize object
42 43 44 |
# File 'lib/devtools/config.rb', line 42 def initialize(project) @project = project end |
Instance Attribute Details
#project ⇒ Project (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.
Return project
34 35 36 |
# File 'lib/devtools/config.rb', line 34 def project @project end |
Instance Method Details
#config_file ⇒ String
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.
Return config path
52 53 54 |
# File 'lib/devtools/config.rb', line 52 def config_file @config_file ||= project.config_dir.join(self.class::FILE).freeze end |