# File lib/nmap/parser.rb, line 262 def hosts(status = "") # :yields: host shosts = [] @hosts.each do |host| if status.empty? or host.status == status shosts << host yield host if block_given? end end shosts end