class Jfuzz::EnumGenerator
Public Class Methods
type()
click to toggle source
# File lib/jfuzz/generators/enum_generator.rb, line 11 def self.type "enum" end
Public Instance Methods
generate()
click to toggle source
# File lib/jfuzz/generators/enum_generator.rb, line 7 def generate pick_value end
Private Instance Methods
enum_types()
click to toggle source
# File lib/jfuzz/generators/enum_generator.rb, line 22 def enum_types property.fetch("enum", []) end
pick_value()
click to toggle source
# File lib/jfuzz/generators/enum_generator.rb, line 17 def pick_value max = enum_types.length - 1 enum_types[rand(0..max)] end