Just used a cool regexp trick in Ruby

code better • have fun

consonant  =-> (ch) { /\A[a-z&&[^aeiou]]\z/ =~ ch }