Sha256: 579118c3b0132983a58e8f116fb28a282837ad9d5dd55a5f334e446bd628612b

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

#--
# Inflect
#
# Copyright (c) 2005 Thomas Sawyer
#
# Ruby License
#
# This module is free software. You may use, modify, and/or redistribute this
# software under the same terms as Ruby.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE.
#
#================================================================================
# Revision History
#================================================================================
#  2005-10-25  trans
#================================================================================
#++

#:title: Inflect
#
# Collection of Facets that apply to inflecting a String or Symbol.
#
#   "dog".plural          #=> "dogs"
#   "dog_tail".camelcase  #=> "DogTail"
#   "1".ordinal           #=> "1st"
#
#   :going.upcase         #=> :GOING
#   :Arrow.capitlized?    #=> true
#
# = Author(s)
#
# * Thomas Sawyer
# * (see Facets for corollary)
#

require 'facet/string/singular'
require 'facet/string/plural'

require 'facet/string/camelcase'
require 'facet/string/camelize'

require 'facet/string/underscore'
require 'facet/string/humanize'

require 'facet/string/basename'
require 'facet/string/demodulize'

require 'facet/string/upcase'
require 'facet/string/downcase'
require 'facet/string/capitalized'

require 'facet/string/ordinal'

# don't exist, should they?
#require 'facet/symbol/singular'
#require 'facet/symbol/plural'

require 'facet/symbol/camelcase'
require 'facet/symbol/camelize'

require 'facet/symbol/underscore'

require 'facet/symbol/upcase'
require 'facet/symbol/downcase'
require 'facet/symbol/capitalize'
require 'facet/symbol/capitalized'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
facets-1.0.3 packages/core/lib/facet/inflect.rb
facets-1.1.0 lib/facet/inflect.rb
facets-1.2.0 lib/facets/core/inflect.rb