diff options
author | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-09 00:30:14 +0530 |
---|---|---|
committer | Vijay Dev <vijaydev.cse@gmail.com> | 2011-05-09 00:30:14 +0530 |
commit | d6ff2eea0b66df825105aa7b74a32db7fd3db8b9 (patch) | |
tree | 0e2c6dc2cf3cef2858e71b4f24f33baaebe836a8 | |
parent | 668cb42f94f8fdf4a999ceecaaa2d331612637d9 (diff) | |
download | rails-d6ff2eea0b66df825105aa7b74a32db7fd3db8b9.tar.gz rails-d6ff2eea0b66df825105aa7b74a32db7fd3db8b9.tar.bz2 rails-d6ff2eea0b66df825105aa7b74a32db7fd3db8b9.zip |
Include examples for negative ordinalize in the guide
-rw-r--r-- | railties/guides/source/active_support_core_extensions.textile | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/railties/guides/source/active_support_core_extensions.textile b/railties/guides/source/active_support_core_extensions.textile index f2170e120b..8f98c71aa0 100644 --- a/railties/guides/source/active_support_core_extensions.textile +++ b/railties/guides/source/active_support_core_extensions.textile @@ -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+. |