Class: Integer

Inherits:
Object
  • Object
show all
Defined in:
lib/rails_extensions/integer.rb

Instance Method Summary collapse

Instance Method Details

#ordinalObject



6
7
8
# File 'lib/rails_extensions/integer.rb', line 6

def ordinal
  I18n.translate('number.nth.ordinals', count: self)
end

#ordinalizeObject



2
3
4
# File 'lib/rails_extensions/integer.rb', line 2

def ordinalize
  I18n.translate('number.nth.ordinalized', count: self)
end