Skip to content

Commit

Permalink
mv to markdown marckup
Browse files Browse the repository at this point in the history
[ci skip]
  • Loading branch information
bbcoimbra committed Oct 15, 2011
1 parent 874d897 commit 521761a
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 44 deletions.
47 changes: 47 additions & 0 deletions README.markdown
@@ -0,0 +1,47 @@
# br-cnpj ![travis-ci build status](https://secure.travis-ci.org/bbcoimbra/br-cnpj.png?branch=master)

Ruby native extension that calculates and validades CNPJ (Cadastro Nacional de
Pessoas Jurídicas)

## Install

```bash
sudo gem install br-cnpj
```

## Examples

```ruby
require 'rubygems'
require 'br/cnpj'

BR::CNPJ.valid? '00000000000191'
#> true

BR::CNPJ.valid? 191
#> true

BR::CNPJ.valid? 192
#> false

radix = 0
filial = 1
BR::CNPJ.new(radix, filial).to_s
#> '00000000000191'

BR::CNPJ.new(191).valid?
#> true

BR::CNPJ.new(1234567891011).valid?
#> false

BR::CNPJ.format(191)
#> '00.000.000/0001-91'

BR::CNPJ.unformat('00.000.000/0001-91')
#> '00000000000191'
```

## Copyright

Copyright (c) 2010 Bruno Coimbra. Veja o arquivo LICENSE para mais detalhes.
44 changes: 0 additions & 44 deletions README.rdoc

This file was deleted.

0 comments on commit 521761a

Please sign in to comment.