Sha256: 558b93086ba582086771e317d0507f2854ada86a9a3098189029f0b623b70dce

Contents?: true

Size: 207 Bytes

Versions: 23

Compression:

Stored size: 207 Bytes

Contents

# frozen_string_literals: true

module Lumberjack
  class Formatter
    # Format an object by calling `to_s` on it.
    class StringFormatter
      def call(obj)
        obj.to_s
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
lumberjack-1.2.2 lib/lumberjack/formatter/string_formatter.rb
lumberjack-1.2.1 lib/lumberjack/formatter/string_formatter.rb
lumberjack-1.2.0 lib/lumberjack/formatter/string_formatter.rb