Module: Inflector

Module | Inflector
In: | lib/active_support/inflector.rb

The Inflector transforms words from singular to plural, class names to table names, modularized class names to ones without, and class names to foreign keys. The default inflections for pluralization, singularization, and uncountable words are kept in inflections.rb.

### Methods

camelize classify constantize dasherize demodulize foreign_key humanize inflections ordinalize pluralize singularize tableize titleize underscore

### Classes and Modules

Class Inflector::Inflections

### Public Instance methods

camelize(lower_case_and_underscored_word, first_letter_in_uppercase = true)
classify(table_name)
constantize(camel_cased_word)
dasherize(underscored_word)
demodulize(class_name_in_module)
foreign_key(class_name, separate_class_name_and_id_with_underscore = true)
humanize(lower_case_and_underscored_word)
inflections() {|Inflections.instance| ...}
ordinalize(number)
pluralize(word)
singularize(word)
tableize(class_name)
titleize(word)
underscore(camel_cased_word)

[Validate]