Sha256: bc63f0583cc77b58186489c8a49fdf386de4610e561db34e73b6a40c85d8f64c

Contents?: true

Size: 332 Bytes

Versions: 3

Compression:

Stored size: 332 Bytes

Contents

# frozen_string_literal: true

module Trifle
  module Logs
    module Formatter
      module Content
        class Text
          def format(scope, message)
            [
              scope.map { |pair| pair.join(':') }.join(';'),
              message
            ].join(' ')
          end
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
trifle-logs-0.2.1 lib/trifle/logs/formatter/content/text.rb
trifle-logs-0.2.0 lib/trifle/logs/formatter/content/text.rb
trifle-logs-0.1.0 lib/trifle/logs/formatter/content/text.rb