Sha256: e04027eafddfb72108a74da155c110b8583f9c7d2571c20240b9f9b6474c876c
Contents?: true
Size: 497 Bytes
Versions: 13
Compression:
Stored size: 497 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the text action. class Text include Pennyworth::Import[:logger] def initialize processor: Processor.for_text, **dependencies super(**dependencies) @processor = processor end def call(content) = processor.call(content).to_json.then { |json| logger.info { json } } private attr_reader :processor end end end end
Version data entries
13 entries across 13 versions & 1 rubygems