Class: Rack::Logjam::Formatters::Xml

Inherits:
Base
  • Object
show all
Defined in:
lib/rack/logjam/formatters/xml.rb

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from Rack::Logjam::Formatters::Base

Instance Method Details

#renderObject



8
9
10
11
12
# File 'lib/rack/logjam/formatters/xml.rb', line 8

def render
  ::Nokogiri.XML( content ) do |config|
    config.default_xml.noblanks
  end.to_xml( indent: 2 )
end