Class: Jfuzz::Generator
- Inherits:
-
Object
- Object
- Jfuzz::Generator
- Defined in:
- lib/jfuzz/generators/generator.rb
Direct Known Subclasses
ArrayGenerator, BooleanGenerator, EnumGenerator, IntegerGenerator, NumberGenerator, ObjectGenerator, StringGenerator
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(property, property_fuzzer) ⇒ Generator
constructor
A new instance of Generator.
- #try_generate ⇒ Object
Constructor Details
#initialize(property, property_fuzzer) ⇒ Generator
Returns a new instance of Generator.
5 6 7 8 |
# File 'lib/jfuzz/generators/generator.rb', line 5 def initialize(property, property_fuzzer) @property = property @property_fuzzer = property_fuzzer end |
Class Method Details
.type ⇒ Object
14 15 16 |
# File 'lib/jfuzz/generators/generator.rb', line 14 def self.type raise "`type` must be implemented by sub class" end |
Instance Method Details
#try_generate ⇒ Object
10 11 12 |
# File 'lib/jfuzz/generators/generator.rb', line 10 def try_generate generate end |