Class: Jfuzz::Generator

Inherits:
Object
  • Object
show all
Defined in:
lib/jfuzz/generators/generator.rb

Class Method Summary collapse

Instance Method Summary collapse

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

.typeObject



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_generateObject



10
11
12
# File 'lib/jfuzz/generators/generator.rb', line 10

def try_generate
  generate
end