Class: MimiCheck::Generator::Char

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

Instance Method Summary collapse

Methods included from MimiCheck::Generator

#call, #to_proc

Constructor Details

#initializeChar

Returns a new instance of Char.



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

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

Instance Method Details

#generateObject



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

def generate
  uint_gen.generate.chr
end