Skip to content

cotocisternas/rut_CL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RutCL

rut_CL is a Chilean RUN/RUT validator and generator.

Very simple gem, and my first one, don't have test or validations so far, so fell free to contribute

##Usage

RutCL.generate                    #=> "28.556.792-0"
RutCL.get_dv("28.556.792")        #=> "0"
RutCL.is_valid?("28.556.792-3")   #=> false
RutCL.is_valid?("28.556.792-0")   #=> true
RutCL.format("285567920")         #=> "28.556.792-0"
RutCL.strip_digit("28.556.792-0") #=> "28.556.792"
RutCL.strip_dots("28.556.792-0")  #=> "28556792-0"
RutCL.raw("28.556.792-0")         #=> "285567920"

Contributing

Pleas do it if you like, is my first GEM so best practices and help is welcome

Contact

Comments and feedback are welcome. let me a message web site.

License

This code is free to use under the terms of the MIT license.

About

rut_CL is a Chilean RUN/RUT validator and generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published