Method: Nmap::XML#host

Defined in:
lib/nmap/xml.rb

#hostHost

Returns the first host.

Returns:

Since:

  • 0.8.0

[View source]

328
329
330
# File 'lib/nmap/xml.rb', line 328

def host
  each_host.first
end