Method: Nmap::XML#to_s

Defined in:
lib/nmap/xml.rb

#to_sString

Converts the XML parser to a String.

Returns:

  • (String)

    The path of the XML file or the raw XML.



439
440
441
442
443
# File 'lib/nmap/xml.rb', line 439

def to_s
  if @path then @path.to_s
  else          @doc.to_s
  end
end