Parent

Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::REXML::TreeBuilder

Public Class Methods

new() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 180
def initialize
  @documentClass = Document
  @doctypeClass  = DocumentType
  @elementClass  = Element
  @commentClass  = CommentNode
  @fragmentClass = DocumentFragment
end

Public Instance Methods

get_document() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 197
def get_document
  @document.rxobj
end
get_fragment() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 201
def get_fragment
  @document = super
  return @document.rxobj.children
end
insertDoctype(name, public_id, system_id) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 188
def insertDoctype(name, public_id, system_id)
  doctype = @doctypeClass.new(name, public_id, system_id)
  @document.appendChild(doctype)
end
testSerializer(node) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 193
def testSerializer node
  node.printTree
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.