Class: REXML::Document
- Inherits:
-
Object
- Object
- REXML::Document
- Defined in:
- lib/rcov/report.rb
Instance Method Summary collapse
Instance Method Details
#write(output = $stdout, indent = -1,, trans = false, ie_hack = false) ⇒ Object
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'lib/rcov/report.rb', line 22 def write( output=$stdout, indent=-1, trans=false, ie_hack=false ) if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output) output = Output.new( output, xml_decl.encoding ) end formatter = if indent > -1 #if trans REXML::Formatters::Transitive.new( indent ) #else # REXML::Formatters::Pretty.new( indent, ie_hack ) #end else REXML::Formatters::Default.new( ie_hack ) end formatter.write( self, output ) end |