Sha256: db8a8846f2f0554fab9dafb34eb56875b30b1d1118af19ab5d7be224269efc84

Contents?: true

Size: 400 Bytes

Versions: 3

Compression:

Stored size: 400 Bytes

Contents

require File.dirname(__FILE__) + '/../../inflector' unless defined? Inflector
module ActiveSupport #:nodoc:
  module CoreExtensions #:nodoc:
    module Integer #:nodoc:
      module Inflections
        # 1.ordinalize  # => "1st"
        # 3.ordinalize  # => "3rd"
        # 10.ordinalize # => "10th"
        def ordinalize
          Inflector.ordinalize(self)
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
activesupport-1.3.0 lib/active_support/core_ext/integer/inflections.rb
activesupport-1.3.1 lib/active_support/core_ext/integer/inflections.rb
monetra-ruby-0.0.6 lib/monetra/active_support/core_ext/integer/inflections.rb