Class: Lograge::Formatters::Lines

Inherits:
Object
  • Object
show all
Defined in:
lib/lograge/formatters/lines.rb

Instance Method Summary collapse

Instance Method Details

#call(data) ⇒ Object



6
7
8
9
10
# File 'lib/lograge/formatters/lines.rb', line 6

def call(data)
  load_dependencies

  ::Lines.dump(data)
end

#load_dependenciesObject



12
13
14
15
16
17
# File 'lib/lograge/formatters/lines.rb', line 12

def load_dependencies
  require 'lines'
rescue LoadError
  puts 'You need to install the lines gem to use this output.'
  raise
end