module Rantly::Chars

Constants

ALNUM
ALPHA
ASCII
BLANK
CLASSES
CNTRL
DIGIT
GRAPH
LOWER
PRINT
PUNCT
SPACE
UPPER
XDIGIT

Public Class Methods

of(regexp) click to toggle source
# File lib/rantly/generator.rb, line 228
def of(regexp)
  ASCII.scan(regexp).to_a.map! { |char| char[0].ord }
end