Sha256: fc1812e7c0defdc3e3701a0e4d4b00a937fb20ec22ec418338686493a9b33507

Contents?: true

Size: 311 Bytes

Versions: 3

Compression:

Stored size: 311 Bytes

Contents

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.11.2 lib/lograge/formatters/helpers/method_and_path.rb
lograge-0.11.1 lib/lograge/formatters/helpers/method_and_path.rb
lograge-0.11.0 lib/lograge/formatters/helpers/method_and_path.rb