Makes it possible to do "posts".singularize that returns "post" and "MegaCoolClass".underscore that returns "mega_cool_class".

Methods
Public Instance methods
camelcase()

Alias for camelize

camelize()
This method is also aliased as camelcase
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 15
15:         def camelize
16:           Inflector.camelize(self)
17:         end
classify()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 37
37:         def classify
38:           Inflector.classify(self)
39:         end
constantize()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 51
51:         def constantize
52:           Inflector.constantize(self)
53:         end
demodulize()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 29
29:         def demodulize
30:           Inflector.demodulize(self)
31:         end
foreign_key(separate_class_name_and_id_with_underscore = true)
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 47
47:         def foreign_key(separate_class_name_and_id_with_underscore = true)
48:           Inflector.foreign_key(self, separate_class_name_and_id_with_underscore)
49:         end
humanize()

Capitalizes the first word and turns underscores into spaces and strips _id, so "employee_salary" becomes "Employee salary" and "author_id" becomes "Author".

    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 43
43:         def humanize
44:           Inflector.humanize(self)
45:         end
pluralize()
   # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 7
7:         def pluralize
8:           Inflector.pluralize(self)
9:         end
singularize()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 11
11:         def singularize
12:           Inflector.singularize(self)
13:         end
tableize()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 33
33:         def tableize
34:           Inflector.tableize(self)
35:         end
titlecase()

Alias for titleize

titleize()
This method is also aliased as titlecase
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 20
20:         def titleize
21:           Inflector.titleize(self)
22:         end
underscore()
    # File vendor/rails/activesupport/lib/active_support/core_ext/string/inflections.rb, line 25
25:         def underscore
26:           Inflector.underscore(self)
27:         end