module Inflections
Ruby on Rails 2.3.18
Since v2.2.3 Last seen in v2.3.18Available in: v2.2.3 v2.3.18
String inflections define new methods on the String class to transform names for different purposes. For instance, you can figure out the name of a database from the name of a class.
"ScaleScore".tableize # => "scale_scores"
Methods (defined here)
- # camelcase
- # camelize
- # classify
- # constantize
- # dasherize
- # demodulize
- # foreign_key
- # humanize
- # parameterize
- # pluralize
- # singularize
- # tableize
- # titlecase
- # titleize
- # underscore