Class: BetterCap::Parsers::Custom

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

Overview

Parser used when the “–custom-parser EXPRESSION” command line argument is specified.

Instance Method Summary collapse

Methods inherited from Base

#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