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.
18 19 20 |
# File 'lib/eim_xml/xhtml.rb', line 18 def initialize(attributes={}) super(:html, attributes) end |
Instance Attribute Details
#prefix ⇒ Object
Returns the value of attribute prefix.
13 14 15 |
# File 'lib/eim_xml/xhtml.rb', line 13 def prefix @prefix end |
Instance Method Details
#write_to(out = "") ⇒ Object
22 23 24 25 |
# File 'lib/eim_xml/xhtml.rb', line 22 def write_to(out="") out << @prefix << "\n" if @prefix super end |