Method: Nmap::XML#hosts

Defined in:
lib/nmap/xml.rb

#hostsArray<Host>

Parses the hosts in the scan.

Returns:

  • (Array<Host>)

    The hosts in the scan.


317
318
319
# File 'lib/nmap/xml.rb', line 317

def hosts
  each_host.to_a
end