Module: ActiveSupport::CoreExtensions::Integer::Inflections

Included in:
Integer
Defined in:
lib/active_support/core_ext/integer/inflections.rb

Instance Method Summary collapse

Instance Method Details

#ordinalizeObject

1.ordinalize # => “1st” 3.ordinalize # => “3rd” 10.ordinalize # => “10th”


9
10
11
# File 'lib/active_support/core_ext/integer/inflections.rb', line 9

def ordinalize
  Inflector.ordinalize(self)
end