Class: EimXML::XHTML::PreserveSpace_

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

Direct Known Subclasses

A, BUTTON, CAPTION, DD, DT, EM, H1, H2, H3, H4, H5, H6, LI, P, PRE, SCRIPT, SPAN, STRONG, STYLE, TD, TEXTAREA, TH

Constant Summary

Constants inherited from Element

Element::NEST

Instance Attribute Summary

Attributes inherited from Element

#attributes, #contents, #name

Instance Method Summary collapse

Methods inherited from Element

#==, #[], #add, #add_attribute, #del_attribute, #find, #has?, #match, #name_and_attributes, #pcstring_contents, #write_to

Constructor Details

#initialize(name = {}, attributes = {}) ⇒ PreserveSpace_

Returns a new instance of PreserveSpace_.



35
36
37
38
39
40
41
# File 'lib/eim_xml/xhtml.rb', line 35

def initialize(name={}, attributes={})
	if name.is_a?(Hash)
		super(self.class.name[/.*::(.*)/, 1].downcase.to_sym, name)
	else
		super(name, attributes)
	end
end