Sha256: 85dcace8b84a9465203ebcee7ca2427da9cbf417d4d51242fce6978a3ec16373
Contents?: true
Size: 1.21 KB
Versions: 1
Compression:
Stored size: 1.21 KB
Contents
Nomen ======== [![Gem Version](https://badge.fury.io/rb/nomen.png)][gem] [![Build Status](https://secure.travis-ci.org/abevoelker/nomen.png?branch=master)][travis] [![Dependency Status](https://gemnasium.com/abevoelker/nomen.png)][gemnasium] [gem]: https://rubygems.org/gems/nomen [travis]: http://travis-ci.org/abevoelker/nomen [gemnasium]: https://gemnasium.com/abevoelker/nomen Simple library for formatting (and maybe later, parsing) human names. Description ----------- The name is latin for "name"; no misandry intended. For now I'm only handling my current use case, which is very basic formatting of American-style names. I am aware of the [complexity of][patio11] human names. Synopsis -------- ```ruby require 'nomen' n = Nomen.new(first: 'Katya', middle: 'Verenice', last: 'Voelker', suffix: 'M.D.') n.format # => "Katya Verenice Voelker M.D." n.format(:inverted) # => "Voelker, Katya Verenice M.D." n.middle = nil n.format # => "Katya Voelker M.D." n.format(:inverted) # => "Voelker, Katya M.D." ``` Copyright --------- Copyright (c) 2013 Abe Voelker. Released under the terms of the MIT license. See LICENSE for details. [patio11]: http://www.kalzumeus.com/2010/06/17/falsehoods-programmers-believe-about-names/
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
nomen-0.0.2 | README.md |