Class: EimXML::XHTML::PreserveSpace
- 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
Instance Attribute Summary
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(name = {}, attributes = {}) ⇒ PreserveSpace
constructor
A new instance of PreserveSpace.
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 |