Class: Hpricot::DocType

Inherits:
Object show all
Defined in:
lib/spiderfw/patches/hpricot.rb

Instance Method Summary collapse

Instance Method Details

#output(out, opts = {}) ⇒ Object



3
4
5
6
7
8
9
10
# File 'lib/spiderfw/patches/hpricot.rb', line 3

def output(out, opts = {})
    out <<
    if_output(opts) do
        "<!DOCTYPE #{target}" +
        (public_id ? " PUBLIC \"#{public_id}\"" : "") +
        (system_id ? " SYSTEM #{html_quote(system_id)}" : "") + ">"
    end
end