lib/lumberjack/formatter/strip_formatter.rb



# frozen_string_literal: true

module Lumberjack
  class Formatter
    # Format an object by calling `to_s` on it and stripping leading and trailing whitespace.
    class StripFormatter
      def call(obj)
        obj.to_s.strip
      end
    end
  end
end