Object
This holds the information about an individual port or protocol
Compares port numbers
# File lib/nmap/parser.rb, line 1269 def <=>(port) @num <=> port.num end
Returns the Script object with the specified name
# File lib/nmap/parser.rb, line 1248 def script(name) @scripts.find { |script| script.id == name } end
Returns the output of the script name
# File lib/nmap/parser.rb, line 1260 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 yields them each to a block if one is given
# File lib/nmap/parser.rb, line 1254 def scripts @scripts.each { |script| yield script } if block_given? @scripts end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.