Class: Pennyworth::CLI::Actions::Encoding
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Pennyworth::CLI::Actions::Encoding
- Defined in:
- lib/pennyworth/cli/actions/encoding.rb
Overview
Handles the encoding action.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(processor: Processor.for_encodings) ⇒ Encoding
constructor
A new instance of Encoding.
Constructor Details
#initialize(processor: Processor.for_encodings) ⇒ Encoding
Returns a new instance of Encoding.
16 17 18 19 |
# File 'lib/pennyworth/cli/actions/encoding.rb', line 16 def initialize(processor: Processor.for_encodings, **) super(**) @processor = processor end |
Instance Method Details
#call ⇒ Object
21 |
# File 'lib/pennyworth/cli/actions/encoding.rb', line 21 def call(*) = io.puts processor.call.to_json |