Method: Nmap::XML#version

Defined in:
lib/nmap/xml.rb

#versionString

Parses the XML scan file version.

Returns:

  • (String)

    The version of the XML scan file.



115
116
117
# File 'lib/nmap/xml.rb', line 115

def version
  @version ||= @doc.root['xmloutputversion']
end