Class: EimXML::XHTML::Formatter

Inherits:
Formatter show all
Defined in:
lib/eim_xml/xhtml.rb

Instance Attribute Summary

Attributes inherited from Formatter

#out

Class Method Summary collapse

Methods inherited from Formatter

#indent, #initialize, #preserve_space_element?, #write, #write_comment, #write_contents_of, #write_element, #write_indent, #write_newline, #write_pcstring, #write_string, #write_wrapper

Constructor Details

This class inherits a constructor from EimXML::Formatter

Class Method Details

.write(element, opt = {}) ⇒ Object



149
150
151
# File 'lib/eim_xml/xhtml.rb', line 149

def self.write(element, opt={})
	EimXML::Formatter.write(element, opt.merge(:preservers=>PRESERVE_SPACES))
end