Checks a credit card number using the Luhn algorithm in ruby