Class: Dox::Formatters::Xml
Instance Method Summary collapse
Methods inherited from Base
Constructor Details
This class inherits a constructor from Dox::Formatters::Base
Instance Method Details
#format ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/dox/formatters/xml.rb', line 4 def format doc = REXML::Document.new(body) formatter = REXML::Formatters::Pretty.new formatter.compact = true result = '' formatter.write(doc, result) result end |