Class: Lograge::Formatters::KeyValue
- Inherits:
-
Object
- Object
- Lograge::Formatters::KeyValue
- Defined in:
- lib/lograge/formatters/key_value.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#call(data) ⇒ Object
6 7 8 9 10 |
# File 'lib/lograge/formatters/key_value.rb', line 6 def call(data) fields_to_display(data) .map { |key| format(key, data[key]) } .join(' ') end |