module DateEnhanced

Public Instance Methods

ordinalize() click to toggle source
# File lib/asterisk_mini_statement.rb, line 13
def ordinalize()
  self.to_s + ( (10...20).include?(self) ? 'th' : 
            %w{ th st nd rd th th th th th th }[self % 10] )
end