class String
Ruby on Rails 3.2.22.5
Since v2.2.3String inflections define new methods on the String class to transform names for different purposes. For instance, you can figure out the name of a table from the name of a class.
"ScaleScore".tableize # => "scale_scores"
Inherits from
Constants
Methods (defined here)
- # acts_like_string?
- # at
- # blank?
- # camelcase
- # camelize
- # classify
- # constantize
- # dasherize
- # deconstantize
- # demodulize
- # encoding_aware?
- # exclude?
- # first
- # foreign_key
- # from
- # html_safe
- # humanize
- # inquiry
- # is_utf8?
- # last
- # mb_chars
- # ord
- # parameterize
- # pluralize
- # safe_constantize
- # singularize
- # squish
- # squish!
- # strip_heredoc
- # tableize
- # titlecase
- # titleize
- # to
- # to_date
- # to_datetime
- # to_time
- # truncate
- # underscore
Used by
Subclasses (5)
Methods (inherited)
From Object (18)
- # acts_like?
- # blank?
- # create_fixtures
- # duplicable?
- # html_safe?
- # in?
- # instance_variable_names
- # options
- # presence
- # present?
- # test_homepage
- # to_json
- # to_param
- # to_query
- # try
- # unescape
- # with_options
- self. table_name_prefix