Class: Watobo::Gui::FuzzerTag

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name) ⇒ FuzzerTag

Returns a new instance of FuzzerTag.


120
121
122
123
124
125
# File 'lib/watobo/gui/fuzzer_gui.rb', line 120

def initialize(name)
   @name = name
   @generators = []
   @collector = nil
   @trigger = nil
end

Instance Attribute Details

#collectorObject (readonly)

Returns the value of attribute collector


99
100
101
# File 'lib/watobo/gui/fuzzer_gui.rb', line 99

def collector
  @collector
end

#generatorsObject (readonly)

Returns the value of attribute generators


98
99
100
# File 'lib/watobo/gui/fuzzer_gui.rb', line 98

def generators
  @generators
end

#nameObject (readonly)

Returns the value of attribute name


97
98
99
# File 'lib/watobo/gui/fuzzer_gui.rb', line 97

def name
  @name
end

#triggerObject (readonly)

Returns the value of attribute trigger


100
101
102
# File 'lib/watobo/gui/fuzzer_gui.rb', line 100

def trigger
  @trigger
end

Instance Method Details

#addGenerator(gen) ⇒ Object


106
107
108
# File 'lib/watobo/gui/fuzzer_gui.rb', line 106

def addGenerator(gen)
   @generators.push gen
end

#deleteGenerator(gen) ⇒ Object


110
111
112
# File 'lib/watobo/gui/fuzzer_gui.rb', line 110

def deleteGenerator(gen)
   @generators.delete(gen)
end

#is_tag?Boolean

Returns:

  • (Boolean)

102
103
104
# File 'lib/watobo/gui/fuzzer_gui.rb', line 102

def is_tag?()
   true
end

#run(result) ⇒ Object


114
115
116
117
118
# File 'lib/watobo/gui/fuzzer_gui.rb', line 114

def run(result)
   @generators.each do |g|
      g.run(result) { |x| yield x }
   end
end