Sha256: 47ddfa90d78cf13b1af28a03608dfd797380554cbce5e41db6c22c7b0837d3d3

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 Bytes

Contents

# frozen_string_literal: true

module Lograge
  module Formatters
    module Helpers
      module MethodAndPath
        def method_and_path_string(data)
          method_and_path = [data[:method], data[:path]].compact
          method_and_path.any?(&:present?) ? " #{method_and_path.join(' ')} " : ' '
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lograge-0.14.0 lib/lograge/formatters/helpers/method_and_path.rb
lograge-0.13.0 lib/lograge/formatters/helpers/method_and_path.rb
lograge-0.12.0 lib/lograge/formatters/helpers/method_and_path.rb