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.



38
39
40
41
42
43
44
# File 'lib/eim_xml/xhtml.rb', line 38

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