Include examples for negative ordinalize in the guide

This commit is contained in:
Vijay Dev 2011-05-09 00:30:14 +05:30
parent 668cb42f94
commit d6ff2eea0b

@ -1833,6 +1833,8 @@ The method +ordinalize+ returns the ordinal string corresponding to the receiver
2.ordinalize # => "2nd"
53.ordinalize # => "53rd"
2009.ordinalize # => "2009th"
-21.ordinalize # => "-21st"
-134.ordinalize # => "-134th"
</ruby>
NOTE: Defined in +active_support/core_ext/integer/inflections.rb+.