Method: Nmap::XML::Host#hostnames

Defined in:
lib/nmap/xml/host.rb

#hostnamesArray<Hostname>

Parses the hostnames of the host.

Returns:

  • (Array<Hostname>)

    The hostnames of the host.

Since:

  • 1.0.0



221
222
223
# File 'lib/nmap/xml/host.rb', line 221

def hostnames
  each_hostname.to_a
end