Class: EimXML::XHTML::HTML
Defined Under Namespace
Modules: NameSpace
Constant Summary
Constants inherited from Element
Instance Attribute Summary collapse
-
#prefix ⇒ Object
Returns the value of attribute prefix.
Attributes inherited from Element
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ HTML
constructor
A new instance of HTML.
- #write_to(out = '') ⇒ Object
Methods inherited from Element
#==, #[], #add, #add_attribute, #del_attribute, #find, #has?, #match, #name_and_attributes, #pcstring_contents
Constructor Details
#initialize(attributes = {}) ⇒ HTML
Returns a new instance of HTML.
21 22 23 |
# File 'lib/eim_xml/xhtml.rb', line 21 def initialize(attributes = {}) super(:html, attributes) end |
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix.
15 16 17 |
# File 'lib/eim_xml/xhtml.rb', line 15 def prefix @prefix end |
Instance Method Details
#write_to(out = '') ⇒ Object
25 26 27 28 |
# File 'lib/eim_xml/xhtml.rb', line 25 def write_to(out = '') out << @prefix << "\n" if @prefix super end |