Class: MimiCheck::Generator::Byte

Inherits:
Object
  • Object
show all
Includes:
MimiCheck::Generator
Defined in:
lib/mimicheck/generator/byte.rb

Instance Method Summary collapse

Methods included from MimiCheck::Generator

#call, #to_proc

Constructor Details

#initializeByte

Returns a new instance of Byte.



6
7
8
# File 'lib/mimicheck/generator/byte.rb', line 6

def initialize
  @uint_gen = UInt.new(0..255)
end

Instance Method Details

#generateObject



12
13
14
# File 'lib/mimicheck/generator/byte.rb', line 12

def generate
  uint_gen.generate
end