Class: MimiCheck::Generator::String

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

Instance Method Summary collapse

Methods included from MimiCheck::Generator

#call, #to_proc

Constructor Details

#initialize(range = 0..25) ⇒ String

Returns a new instance of String.



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

def initialize(range = 0..25)
  @range = range
end

Instance Method Details

#generateObject



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

def generate
  Array.new(Char.new, range).call.join('')
end