Class: BetterCap::Parsers::Custom
- Defined in:
- lib/bettercap/sniffer/parsers/custom.rb
Overview
argument is specified.
Instance Method Summary collapse
-
#initialize(filter) ⇒ Custom
constructor
Initialize the parser given the
filter
Regexp object.
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 |