module ConsonantRegex

Constants

VERSION

Public Class Methods

is_consonant(word) click to toggle source

Your code goes here…

# File lib/consonant_regex.rb, line 5
def self.is_consonant(word)
  word.each_char do |letter|  
    if (/[aeiou]/.match(letter))
      return false
    end
  end
  return true
end