Class: LintTrappings::Command::Base Abstract

Inherits:
Object
  • Object
show all
Defined in:
lib/lint_trappings/command/base.rb

Overview

This class is abstract.

Abstract base class of all commands.

Instance Method Summary collapse

Constructor Details

#initialize(application, config, options, output) ⇒ Base

Returns a new instance of Base.

Parameters:


10
11
12
13
14
15
# File 'lib/lint_trappings/command/base.rb', line 10

def initialize(application, config, options, output)
  @application = application
  @config = config
  @options = options
  @output = output
end

Instance Method Details

#runObject

Runs the command.

Raises:

  • (NotImplementedError)

18
19
20
# File 'lib/lint_trappings/command/base.rb', line 18

def run
  raise NotImplementedError, 'Define `execute` in `Command::Base` subclass'
end