Class: Pennyworth::CLI::Actions::System::Error
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Pennyworth::CLI::Actions::System::Error
- Defined in:
- lib/pennyworth/cli/actions/system/error.rb
Overview
Handles the system error action.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(processor: Processor.for_system_errors) ⇒ Error
constructor
A new instance of Error.
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
#call ⇒ Object
22 |
# File 'lib/pennyworth/cli/actions/system/error.rb', line 22 def call(*) = io.puts processor.call.to_json |