Method: NMap::Header#initialize

Defined in:
lib/nmap.rb

#initialize(path, *argv) ⇒ Header

Returns a new instance of Header.



42
43
44
45
46
47
48
49
50
51
52
53
54
# File 'lib/nmap.rb', line 42

def initialize path, *argv
  @path = string_of path

  self.na_type = argv.shift
  self.shape = argv

  self.na_type = int_of na_type if na_type 
  self.shape = int_list_of shape if shape

  init! if na_type and shape

  load!
end