Class: Reek::CLI::Command::BaseCommand
- Inherits:
-
Object
- Object
- Reek::CLI::Command::BaseCommand
- Defined in:
- lib/reek/cli/command/base_command.rb
Overview
Base class for all commands
Direct Known Subclasses
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
private
Returns the value of attribute configuration.
-
#options ⇒ Object
readonly
private
Returns the value of attribute options.
-
#sources ⇒ Object
readonly
private
Returns the value of attribute sources.
Instance Method Summary collapse
-
#initialize(options:, sources:, configuration:) ⇒ BaseCommand
constructor
A new instance of BaseCommand.
- #smell_names ⇒ Object private
Constructor Details
#initialize(options:, sources:, configuration:) ⇒ BaseCommand
Returns a new instance of BaseCommand.
10 11 12 13 14 |
# File 'lib/reek/cli/command/base_command.rb', line 10 def initialize(options:, sources:, configuration:) = @sources = sources @configuration = configuration end |
Instance Attribute Details
#configuration ⇒ Object (readonly, private)
Returns the value of attribute configuration.
18 19 20 |
# File 'lib/reek/cli/command/base_command.rb', line 18 def configuration @configuration end |
#options ⇒ Object (readonly, private)
Returns the value of attribute options.
18 19 20 |
# File 'lib/reek/cli/command/base_command.rb', line 18 def end |
#sources ⇒ Object (readonly, private)
Returns the value of attribute sources.
18 19 20 |
# File 'lib/reek/cli/command/base_command.rb', line 18 def sources @sources end |
Instance Method Details
#smell_names ⇒ Object (private)
20 21 22 |
# File 'lib/reek/cli/command/base_command.rb', line 20 def smell_names @smell_names ||= .smells_to_detect end |