Module: Spg::SymbolSet

Defined in:
lib/spg/symbol_set.rb

Class Method Summary collapse

Class Method Details

.lowercaseObject



8
9
10
# File 'lib/spg/symbol_set.rb', line 8

def lowercase
  [*"a".."z"]
end

.numeralObject



4
5
6
# File 'lib/spg/symbol_set.rb', line 4

def numeral
  [*"0".."9"]
end

.specialObject



16
17
18
# File 'lib/spg/symbol_set.rb', line 16

def special
  [*"!".."/", *":".."@", *"[".."`", *"{".."~"]
end

.unreadableObject



20
21
22
# File 'lib/spg/symbol_set.rb', line 20

def unreadable
  %w(0 o O 1 l I |)
end

.uppercaseObject



12
13
14
# File 'lib/spg/symbol_set.rb', line 12

def uppercase
  [*"A".."Z"]
end