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.



18
19
20
# File 'lib/eim_xml/xhtml.rb', line 18

def initialize(attributes={})
	super(:html, attributes)
end

Instance Attribute Details

#prefixObject

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