Method: PropCheck::Generators.ascii_char

Defined in:
lib/prop_check/generators.rb

.ascii_charObject

Generates a single-character string from the printable ASCII character set.

Shrinks towards ‘n’.

>> Generators.ascii_char.sample(size: 10, rng: Random.new(42))
=> ["d", "S", "|", ".", "g", "\\", "4", "d", "r", "v"]


566
567
568
# File 'lib/prop_check/generators.rb', line 566

def ascii_char
  one_of(*@@ascii_chars.map(&method(:constant)))
end