Class/Module Index [+]

Quicksearch

HTML5::TreeBuilders::Hpricot::DocumentType

Public Class Methods

hpricot_class() click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 148
def self.hpricot_class
  ::Hpricot::DocType
end
new(name, public_id, system_id) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 152
def initialize(name, public_id, system_id)
  begin
    super(name)
  rescue ArgumentError # needs 3...
  end

  @hpricot = ::Hpricot::DocType.new(name, public_id, system_id)
end

Public Instance Methods

printTree(indent=0) click to toggle source
# File lib/feed_tools/vendor/html5/lib/html5/treebuilders/hpricot.rb, line 161
def printTree(indent=0)
  if hpricot.target and hpricot.target.any?
    "\n|#{' ' * indent}<!DOCTYPE #{hpricot.target}>"
  else
    "\n|#{' ' * indent}<!DOCTYPE >"
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.