Skip to content

UpbeatProductions/postkode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postkode

A gem to validate UK postcodes

INSTALL:

From RubyGems: Gem Version

EXAMPLE USAGE:

require 'postkode'

Postkode.validate('WC2E 7PX') => true

Postkode.validate('NOT A POSTCODE') => false

Postkode.random => "M5 6RL"

ACKNOWLEDGEMENTS

Postkode.random uses strrand random string generator by tama [email protected]