class Hpricot::XMLDecl

def initialize(version, encoding, standalone)

def initialize(version, encoding, standalone)
  @version, @encoding, @standalone = version, encoding, standalone
end

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

def pathname; "xmldecl()" end

def pathname; "xmldecl()" end