Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
18 lines (11 sloc) 338 Bytes

Ordinali(z|s)e

From the creator who brought you the wildly popular humanize, comes ordinali(s|z)e!

Install

sudo gem install ordinalize

Usage

>> 1.ordinalize
=> "first"

>> 1024.ordinalize
=> "one thousand and twenty-fourth"

>> 1.ordinalise
=> "first"