Class: ImproveYourCode::CLI::Command::ReportCommand
- Inherits:
-
Object
- Object
- ImproveYourCode::CLI::Command::ReportCommand
- Defined in:
- lib/improve_your_code/cli/command/report_command.rb
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(sources:) ⇒ ReportCommand
constructor
A new instance of ReportCommand.
Constructor Details
#initialize(sources:) ⇒ ReportCommand
Returns a new instance of ReportCommand.
10 11 12 |
# File 'lib/improve_your_code/cli/command/report_command.rb', line 10 def initialize(sources:) @sources = sources end |
Instance Method Details
#execute ⇒ Object
14 15 16 17 |
# File 'lib/improve_your_code/cli/command/report_command.rb', line 14 def execute populate_reporter_with_smells reporter.show end |