Class: Pennyworth::CLI::Actions::System::Error

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

Overview

Handles the system error action.

Instance Method Summary collapse

Constructor Details

#initialize(processor: Processor.for_system_errors) ⇒ Error

Returns a new instance of Error.



17
18
19
20
# File 'lib/pennyworth/cli/actions/system/error.rb', line 17

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

Instance Method Details

#callObject



22
# File 'lib/pennyworth/cli/actions/system/error.rb', line 22

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