Ordinalize your numbers (like humanize)
Ruby
Pull request Compare This branch is 1 commit ahead, 2 commits behind radar:master.
Latest commit 90f3793 Jul 12, 2011 @amishyn amishyn rename method
Permalink
Failed to load latest commit information.
lib
spec
.document
.gitignore
README.markdown
Rakefile
VERSION
ordinalize.gemspec

README.markdown

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"

Changes

rename ordinalize => full_ordinalize
To avoid conflicts with rails