Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 526 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 526 Bytes

personnummer Build Status

Validate personal identity numbers.

Installation

Add this to your Gemfile

gem 'personnummer', :git => 'https://github.com/personnummer/ruby.git'

Then run bundle install

Example

require 'personnummer'

puts Personnummer.valid?("8507099805")
# => True

See test/test_personnummer.rb for more examples.

License

MIT