Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::REXML::DocumentType

Public Class Methods

new(name, public_id, system_id) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 128
def initialize name, public_id, system_id
    super(name)
    if public_id
      @rxobj = ::REXML::DocType.new [name, ::REXML::DocType::PUBLIC, public_id, system_id]
    elsif system_id
      @rxobj = ::REXML::DocType.new [name, ::REXML::DocType::SYSTEM, nil, system_id]
    else
      @rxobj = ::REXML::DocType.new name
    end
end
rxclass() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 124
def self.rxclass
  ::REXML::DocType
end

Public Instance Methods

printTree(indent=0) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/rexml.rb, line 139
def printTree indent=0
  "\n|#{' ' * indent}<!DOCTYPE #{name}>"
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.