Sha256: 6aaa3663a67ab3a84d91f1a0ca0170a150d9ec506f44dcbbb6fd58b5a834e815
Contents?: true
Size: 449 Bytes
Versions: 1
Compression:
Stored size: 449 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the text action. class Text include Pennyworth::Import[:kernel] def initialize(processor: Processor.for_text, **) super(**) @processor = processor end def call(content) = kernel.puts processor.call(content).to_json private attr_reader :processor end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pennyworth-14.3.0 | lib/pennyworth/cli/actions/text.rb |