Method: REXML::Formatters::Default#initialize

Defined in:
lib/rexml/formatters/default.rb

#initialize(ie_hack = false) ⇒ Default

Prints out the XML document with no formatting – except if id_hack is set.

ie_hack

If set to true, then inserts whitespace before the close of an empty tag, so that IE’s bad XML parser doesn’t choke.



10
11
12
# File 'lib/rexml/formatters/default.rb', line 10

def initialize( ie_hack=false )
  @ie_hack = ie_hack
end