Sha256: f7dc8a3bbd33f044e6f63c4cb1ee70ebbb4194e24a9c8427646cda66b38dbdf3

Contents?: true

Size: 258 Bytes

Versions: 23

Compression:

Stored size: 258 Bytes

Contents

# frozen_string_literals: 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

Version data entries

23 entries across 23 versions & 4 rubygems

Version Path
honeybadger-5.3.0 vendor/bundle/ruby/3.2.0/gems/lumberjack-1.2.9/lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.9 lib/lumberjack/formatter/strip_formatter.rb
op_connect-0.1.2 vendor/bundle/ruby/3.1.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.35 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.34 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.33 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.32 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.31 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.30 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.29 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.28 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.27 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.26 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
qiita_org-0.1.25 gems/ruby/2.7.0/gems/lumberjack-1.2.8/lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.8 lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.7 lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.6 lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.5 lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.4 lib/lumberjack/formatter/strip_formatter.rb
lumberjack-1.2.3 lib/lumberjack/formatter/strip_formatter.rb