Class: Watobo::Gui::Action

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(action_proc, prefs) ⇒ Action

Returns a new instance of Action.


340
341
342
343
344
# File 'lib/watobo/gui/fuzzer_gui.rb', line 340

def initialize(action_proc, prefs)
   @func = action_proc
   @action_type = prefs[:action_type] || "undefined"
   @info = prefs[:info] || "undefined"
end

Instance Attribute Details

#action_typeObject (readonly)

Returns the value of attribute action_type


332
333
334
# File 'lib/watobo/gui/fuzzer_gui.rb', line 332

def action_type
  @action_type
end

#funcObject (readonly)

Returns the value of attribute func


333
334
335
# File 'lib/watobo/gui/fuzzer_gui.rb', line 333

def func
  @func
end

#infoObject (readonly)

Returns the value of attribute info


334
335
336
# File 'lib/watobo/gui/fuzzer_gui.rb', line 334

def info
  @info
end

Instance Method Details

#is_action?Boolean

Returns:

  • (Boolean)

336
337
338
# File 'lib/watobo/gui/fuzzer_gui.rb', line 336

def is_action?
   true
end