Class: Pennyworth::CLI::Actions::StandardError

Inherits:
Sod::Action
  • Object
show all
Defined in:
lib/pennyworth/cli/actions/standard_error.rb

Overview

Handles the system error action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_standard_errors) ⇒ StandardError

Returns a new instance of StandardError.



16
17
18
19
# File 'lib/pennyworth/cli/actions/standard_error.rb', line 16

def initialize(processor: Processor.for_standard_errors, **)
  super(**)
  @processor = processor
end

Instance Method Details

#callObject



21
# File 'lib/pennyworth/cli/actions/standard_error.rb', line 21

def call(*) = io.puts processor.call.to_json