lib/nmap/xml.rb in ruby-nmap-0.9.2 vs lib/nmap/xml.rb in ruby-nmap-0.9.3
- old
+ new
@@ -253,10 +253,12 @@
@prescript ||= if (prescript = @doc.at('prescript'))
Prescript.new(prescript)
end
end
+ alias prescripts prescript
+
#
# The NSE scripts ran after the scan.
#
# @return [Postscript]
# Contains the script output and data.
@@ -266,9 +268,11 @@
def postscript
@postscript ||= if (postscript = @doc.at('postscript'))
Postscript.new(postscript)
end
end
+
+ alias postscripts postscript
#
# Parses the hosts in the scan.
#
# @yield [host]