module Cadmium::CountInflector

Overview

Inflects a number by adding a suffix onto the end of it.

100.to_nth
# => "100th"

73.to_nth
# => "73rd"

1221.to_nth
"1221st"

Extended Modules

Defined in:

cadmium/inflector/count_inflector.cr

Instance Method Summary

Instance Method Detail

def nth(i) #

Returns a number in it's "nth" form


[View source]