Module: GpxTrackGenerator::PrettyXml

Included in:
Nokogiri::XML::Node
Defined in:
lib/gpx_track_generator/pretty.rb

Overview

Prettify XML

Instance Method Summary collapse

Instance Method Details

#humanObject

Make xml pretty



5
6
7
# File 'lib/gpx_track_generator/pretty.rb', line 5

def human
  Nokogiri::XSLT(File.open(File.expand_path('../pretty.xslt', __FILE__))).apply_to self
end