From 7c5e58d34909f2d84aa0d4e00666d5dc5351bdc4 Mon Sep 17 00:00:00 2001 From: "J. C. Holder" Date: Thu, 25 Aug 2016 19:52:46 -0400 Subject: [PATCH] Tweak comments. --- lib/credit_card.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/credit_card.rb b/lib/credit_card.rb index 21de2d1..7a0a944 100644 --- a/lib/credit_card.rb +++ b/lib/credit_card.rb @@ -1,5 +1,6 @@ # Hide the Luhn-10 algorithm inside a module so that MiniKickstarter can remain -# ignorant of the specifics. Useful if we want to add web-based authentication later, too. +# ignorant of the specifics. Hides the string wrangling, too. +# Also useful if we want to add web-based authentication later. module CreditCard def valid_credit_card_number?(cc_number) valid_luhn_10_sequence?(cc_number.to_s.split(//).map(&:to_i))