Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
luhn
master
Luhn
Built with Crystal 1.10.0
2023-11-04 00:57:37 UTC
class
Luhn
Luhn
Reference
Object
Defined in:
luhn.cr
Class Method Summary
.checksum
(number)
.luhn_doubled
(number)
.split_digits
(number)
.sum_of
(number)
.valid?
(number)
Class Method Detail
def self.
checksum
(number)
#
[
View source
]
def self.
luhn_doubled
(number)
#
[
View source
]
def self.
split_digits
(number)
#
[
View source
]
def self.
sum_of
(number)
#
[
View source
]
def self.
valid?
(number)
#
[
View source
]