Class: Watobo::Gui::Filter

Inherits:
Object
  • Object
show all
Defined in:
lib/watobo/gui/fuzzer_gui.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filter_proc, prefs) ⇒ Filter

Returns a new instance of Filter.


357
358
359
360
361
362
# File 'lib/watobo/gui/fuzzer_gui.rb', line 357

def initialize(filter_proc, prefs)
   @filter_type = prefs[:filter_type] || "undefined"
   @value = prefs[:value] || "undefined"
   @func = filter_proc
   @info = prefs[:info] || "undefined"
end

Instance Attribute Details

#filter_typeObject (readonly)

Returns the value of attribute filter_type


349
350
351
# File 'lib/watobo/gui/fuzzer_gui.rb', line 349

def filter_type
  @filter_type
end

#funcObject (readonly)

Returns the value of attribute func


348
349
350
# File 'lib/watobo/gui/fuzzer_gui.rb', line 348

def func
  @func
end

#infoObject (readonly)

Returns the value of attribute info


351
352
353
# File 'lib/watobo/gui/fuzzer_gui.rb', line 351

def info
  @info
end

#valueObject (readonly)

Returns the value of attribute value


350
351
352
# File 'lib/watobo/gui/fuzzer_gui.rb', line 350

def value
  @value
end

Instance Method Details

#is_filter?Boolean

Returns:

  • (Boolean)

353
354
355
# File 'lib/watobo/gui/fuzzer_gui.rb', line 353

def is_filter?
   true
end