Class: Pennyworth::CLI::Actions::Text
- Inherits:
-
Sod::Action
- Object
- Sod::Action
- Pennyworth::CLI::Actions::Text
- Defined in:
- lib/pennyworth/cli/actions/text.rb
Overview
Handles the text action.
Instance Method Summary collapse
- #call(content) ⇒ Object
-
#initialize(processor: Processor.for_text) ⇒ Text
constructor
A new instance of Text.
Constructor Details
Instance Method Details
#call(content) ⇒ Object
21 |
# File 'lib/pennyworth/cli/actions/text.rb', line 21 def call(content) = io.puts processor.call(content).to_json |