Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Luhnar

Build History

Implementation of Luhn algorithm for computing checkdigits.

Installation

Add this line to your application's Gemfile:

gem 'luhnar'

And then execute:

$ bundle

Or install it yourself as:

$ gem install luhnar

Usage

require 'luhnar'

Luhnar.compute('8900123456789012345')

# or

Luhnar.compute(8900123456789012345)

# returns 6

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Added some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Implementation of Luhn algorithm for computing checkdigits

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages