Sha256: 80d692cecca0b8cbd7e4d08162c8c2877d5c23ec5e8c71bd87313bfe7a3bcc46

Contents?: true

Size: 993 Bytes

Versions: 1

Compression:

Stored size: 993 Bytes

Contents

                       .-.
                         ;  :                              .-.
                       .;:  :     .-.      . ,';.,';.      `-'    .-.
                      .;' \ :    ;   :     ;;  ;;  ;;     ;'    .;.-'
                  .:'.;    \:    `:::'-'  ';  ;;  ';   _.;:._.   `:::'
                 (__.'      `.           _;        `-'



Names as first class citizens


## Install


    gem 'namie'


## Use


```
name = Name.new('Jules Verne')
name.first  # 'Jules'
name.last   # 'Verne'
name.to_s   # 'Jules Verne'
```


Accepts prefix, suffix and middlenames:

```
name = Name.new('Sir Arthur C. Clark')
name.title  # 'Sir'
name.first  # 'Arthur'
name.last   # 'Clark'
name.to_s("%l %m, %f")  # Clark C., Arthur
```

Accepts and detects company names and suffixes:

```
name = Name.new('ACME Corp LLC')
name.first  # 'ACME'
name.last   # 'Corp'
name.suffix # 'LLC'
```


## ActiveModel

Working on it:

* to params hash
* cached/customizable string
* sanitized string

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
namie-0.0.3 README.md