Class: Watobo::Gui::FuzzerTag
- Inherits:
-
Object
- Object
- Watobo::Gui::FuzzerTag
- Defined in:
- lib/watobo/gui/fuzzer_gui.rb
Instance Attribute Summary collapse
-
#collector ⇒ Object
readonly
Returns the value of attribute collector.
-
#generators ⇒ Object
readonly
Returns the value of attribute generators.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#trigger ⇒ Object
readonly
Returns the value of attribute trigger.
Instance Method Summary collapse
- #addGenerator(gen) ⇒ Object
- #deleteGenerator(gen) ⇒ Object
-
#initialize(name) ⇒ FuzzerTag
constructor
A new instance of FuzzerTag.
- #is_tag? ⇒ Boolean
- #run(result) ⇒ Object
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
#collector ⇒ Object (readonly)
Returns the value of attribute collector.
99 100 101 |
# File 'lib/watobo/gui/fuzzer_gui.rb', line 99 def collector @collector end |
#generators ⇒ Object (readonly)
Returns the value of attribute generators.
98 99 100 |
# File 'lib/watobo/gui/fuzzer_gui.rb', line 98 def generators @generators end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
97 98 99 |
# File 'lib/watobo/gui/fuzzer_gui.rb', line 97 def name @name end |
#trigger ⇒ Object (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
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 |