From d6ff2eea0b66df825105aa7b74a32db7fd3db8b9 Mon Sep 17 00:00:00 2001 From: Vijay Dev Date: Mon, 9 May 2011 00:30:14 +0530 Subject: Include examples for negative ordinalize in the guide --- railties/guides/source/active_support_core_extensions.textile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'railties/guides/source/active_support_core_extensions.textile') 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" NOTE: Defined in +active_support/core_ext/integer/inflections.rb+. -- cgit v1.2.3