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