bdurand/lumberjack

View on GitHub
lib/lumberjack/formatter/strip_formatter.rb

Summary

Maintainability
A
0 mins
Test Coverage
# 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