Class: Integer
- Inherits:
-
Object
- Object
- Integer
- Defined in:
- lib/rails_extensions/integer.rb
Instance Method Summary collapse
Instance Method Details
#ordinal ⇒ Object
6 7 8 |
# File 'lib/rails_extensions/integer.rb', line 6 def ordinal I18n.translate('number.nth.ordinals', count: self) end |
#ordinalize ⇒ Object
2 3 4 |
# File 'lib/rails_extensions/integer.rb', line 2 def ordinalize I18n.translate('number.nth.ordinalized', count: self) end |