Skip to content

Commit

Permalink
Tweak comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdtruck committed Aug 25, 2016
1 parent 4f7838e commit 7c5e58d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/credit_card.rb
Original file line number Diff line number Diff line change
@@ -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))
Expand Down

0 comments on commit 7c5e58d

Please sign in to comment.