module Safrano::CoreIncl::REXML::Document::Output

Public Instance Methods

to_pretty_xml() click to toggle source
# File lib/core_ext/REXML/Document/output.rb, line 6
def to_pretty_xml
  formatter = ::REXML::Formatters::Pretty.new(2)
  formatter.compact = true
  formatter.write(root, strio = '')
  strio
end