Method: Nmap::XML#up_host

Defined in:
lib/nmap/xml.rb

#up_hostHost

Returns the first host found to be up during the scan.

Returns:

Since:

  • 0.8.0


420
421
422
# File 'lib/nmap/xml.rb', line 420

def up_host
  each_up_host.first
end