Class: Nmap::Parser::Host::ExtraPorts

Class | Nmap::Parser::Host::ExtraPorts
In: | lib/nmap/parser.rb
Parent: | Object

This holds the information about "extra ports": groups of ports which have the same state.

### Methods

<=> new reasons

### Attributes

count | [R] | Total number of ports in this state
state | [R] | What state the ports are in

### Public Class methods

new(extraports)

### Public Instance methods

<=>(extraports)

Compares the port counts

reasons() {|reason| ...}

Returns an array of arrays, each of which are in the form of:

[ <port count>, reason ]

for each set of reasons, and passes them each to a block if one is given

[Validate]