Class: EimXML::XHTML::HTML

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

Defined Under Namespace

Modules: NameSpace

Constant Summary

Constants inherited from Element

Element::NEST

Instance Attribute Summary collapse

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

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

#prefixObject

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