A simple credit card validation/identification script for identifying visa, amex, discover, and mastercard as well as Luhn validation.
Forked from Jacob White's Pen Credit Card Validation.
A simple credit card validation/identification script for identifying visa, amex, discover, and mastercard as well as Luhn validation.
Forked from Jacob White's Pen Credit Card Validation.
class String | |
def upcase? | |
self == self.upcase | |
end | |
end | |
puts "HI THERE, SONNY!!" | |
while true | |
reply = gets.chomp |