Simple types / Character type

c = 'a'
isUpper = /[[:upper:]]/.match?(c)
isLower = /[[:lower:]]/.match?(c)
# isUpper is false
# isLower is true

puts "isUpper is #{isUpper}"
puts "isLower is #{isLower}"