class Hpricot::DocType
def initialize(target, pubid, sysid)
def initialize(target, pubid, sysid) @target, @public_id, @system_id = target, pubid, sysid end
def output(out, opts = {})
def output(out, opts = {}) out << if_output(opts) do "<!DOCTYPE #{@target} " + (@public_id ? "PUBLIC \"#{@public_id}\"" : "SYSTEM") + (@system_id ? " #{html_quote(@system_id)}" : "") + ">" end end
def pathname; "doctype()" end
def pathname; "doctype()" end