Class: LintTrappings::Command::Base Abstract
- Inherits:
-
Object
- Object
- LintTrappings::Command::Base
- Defined in:
- lib/lint_trappings/command/base.rb
Overview
This class is abstract.
Abstract base class of all commands.
Direct Known Subclasses
DisplayDocumentation, DisplayFormatters, DisplayHelp, DisplayLinters, DisplayVersion, Scan
Instance Method Summary collapse
-
#initialize(application, config, options, output) ⇒ Base
constructor
A new instance of Base.
-
#run ⇒ Object
Runs the command.
Constructor Details
#initialize(application, config, options, output) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 |
# File 'lib/lint_trappings/command/base.rb', line 10 def initialize(application, config, , output) @application = application @config = config @options = @output = output end |
Instance Method Details
#run ⇒ Object
Runs the command.
18 19 20 |
# File 'lib/lint_trappings/command/base.rb', line 18 def run raise NotImplementedError, 'Define `execute` in `Command::Base` subclass' end |