Include examples for negative ordinalize in the guide
This commit is contained in:
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+.
|
||||
|
Loading…
Reference in New Issue
Block a user