lib/nmap/xml.rb in ruby-nmap-0.4.1 vs lib/nmap/xml.rb in ruby-nmap-0.5.0
- old
+ new
@@ -148,11 +148,11 @@
#
# @return [Array<Host>]
# The hosts in the scan.
#
def hosts
- enum_for(:each_host).to_a
+ each_host.to_a
end
#
# Parses the hosts that were found to be up during the scan.
#
@@ -181,10 +181,10 @@
#
# @return [Array<Host>]
# The hosts in the scan.
#
def up_hosts
- enum_for(:each_up_host).to_a
+ each_up_host.to_a
end
#
# Parses the hosts that were found to be up during the scan.
#