Object
This holds the information about an individual port or protocol
Compares port numbers
# File lib/nmap/parser.rb, line 1018 def <=>(port) @num <=> port.num end
Returns the Script object with the specified name
# File lib/nmap/parser.rb, line 996 def script(name) @scripts.find { |script| script.id == name } end
Returns the output of the script name
# File lib/nmap/parser.rb, line 1009 def script_output(name) @scripts.each do |script| return script.output if script.id == name end nil end
Returns an array of Script objects associated with this port, and passes them each to a block if one is given
# File lib/nmap/parser.rb, line 1002 def scripts @scripts.each { |script| yield script } if block_given? @scripts end
Generated with the Darkfish Rdoc Generator 2.