Sha256: d1e33b533439a456a425c693bcc15af354525bcbdef3ee074144b010dc9af30a
Contents?: true
Size: 478 Bytes
Versions: 264
Compression:
Stored size: 478 Bytes
Contents
defmodule Luhn do @doc """ Calculates the total checksum of a number """ @spec checksum(String.t()) :: integer def checksum(number) do end @doc """ Checks if the given number is valid via the luhn formula """ @spec valid?(String.t()) :: boolean def valid?(number) do end @doc """ Creates a valid number by adding the correct checksum digit to the end of the number """ @spec create(String.t()) :: String.t() def create(number) do end end
Version data entries
264 entries across 264 versions & 1 rubygems