Sha256: 9492429bfd9b5b3daa93fb7452fb7c59203e4b7e1d3a2978dceaa1308cb753ad

Contents?: true

Size: 309 Bytes

Versions: 11

Compression:

Stored size: 309 Bytes

Contents

module Dox
  module Formatters
    class Xml < Dox::Formatters::Base
      def format
        doc = REXML::Document.new(body)
        formatter = REXML::Formatters::Pretty.new
        formatter.compact = true
        result = ''
        formatter.write(doc, result)
        result
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dox-2.5.0 lib/dox/formatters/xml.rb
dox-2.4.0 lib/dox/formatters/xml.rb
dox-2.3.0 lib/dox/formatters/xml.rb
dox-2.2.0 lib/dox/formatters/xml.rb
dox-2.1.0 lib/dox/formatters/xml.rb
dox-1.3.0 lib/dox/formatters/xml.rb
dox-2.0.0 lib/dox/formatters/xml.rb
dox-2.0.0.beta3 lib/dox/formatters/xml.rb
dox-2.0.0.beta2 lib/dox/formatters/xml.rb
dox-2.0.0.beta1 lib/dox/formatters/xml.rb
dox-1.2.0 lib/dox/formatters/xml.rb