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.



318
319
320
321
322
# File 'lib/watobo/gui/fuzzer_gui.rb', line 318

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.



310
311
312
# File 'lib/watobo/gui/fuzzer_gui.rb', line 310

def action_type
  @action_type
end

#funcObject (readonly)

Returns the value of attribute func.



311
312
313
# File 'lib/watobo/gui/fuzzer_gui.rb', line 311

def func
  @func
end

#infoObject (readonly)

Returns the value of attribute info.



312
313
314
# File 'lib/watobo/gui/fuzzer_gui.rb', line 312

def info
  @info
end

Instance Method Details

#is_action?Boolean

Returns:

  • (Boolean)


314
315
316
# File 'lib/watobo/gui/fuzzer_gui.rb', line 314

def is_action?
  true
end