Sha256: 55f10ef7b4726d2ec4d558be54583268a64ac7ef164777cdcfa4f2f5c7893ddb
Contents?: true
Size: 515 Bytes
Versions: 7
Compression:
Stored size: 515 Bytes
Contents
# frozen_string_literal: true module Pennyworth module CLI module Actions # Handles the text action. class Text def initialize processor: Processor.for_text, container: Container @processor = processor @container = container end def call(content) = processor.call(content).to_json.then { |json| logger.info { json } } private attr_reader :processor, :container def logger = container[__method__] end end end end
Version data entries
7 entries across 7 versions & 1 rubygems