Class: BetterCap::Parsers::Custom

Inherits:
Base
  • Object
show all
Defined in:
lib/bettercap/sniffer/parsers/custom.rb

Overview

argument is specified.

Instance Method Summary collapse

Methods inherited from Base

available, from_cmdline, inherited, load_by_names, load_custom, #on_packet

Constructor Details

#initialize(filter) ⇒ Custom

Initialize the parser given the filter Regexp object.



20
21
22
23
# File 'lib/bettercap/sniffer/parsers/custom.rb', line 20

def initialize( filter )
  @filters = [ filter ]
  @name    = 'DATA'
end