module Lograge::Formatters::Helpers::MethodAndPath
Public Instance Methods
method_and_path_string(data)
click to toggle source
# File lib/lograge/formatters/helpers/method_and_path.rb, line 5 def method_and_path_string(data) method_and_path = [data[:method], data[:path]].compact method_and_path.any?(&:present?) ? " #{method_and_path.join(' ')} " : ' ' end