class Hpricot::XMLDecl

def output(out, opts = {})

def output(out, opts = {})
  out <<
    if_output(opts) do
      "<?xml version=\"#{@version}\"" +
        (@encoding ? " encoding=\"#{encoding}\"" : "") +
        (@standalone != nil ? " standalone=\"#{standalone ? 'yes' : 'no'}\"" : "") +
        "?>"
    end
end