Method: Rex::MachScan::Scanner::Generic#initialize

Defined in:
lib/rex/machscan/scanner.rb

#initialize(binary) ⇒ Generic

Returns a new instance of Generic.



10
11
12
13
14
15
16
# File 'lib/rex/machscan/scanner.rb', line 10

def initialize(binary)
  if binary.class == Rex::MachParsey::Mach
    self.mach = binary
  else
    self.fat = binary
  end
end