Type:
Class
Constants:
BLANK_RE : /\A[[:space:]]*\z/

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 table from the name of a class.

'ScaleScore'.tableize # => "scale_scores"
classify
  • References/Ruby on Rails/Rails/Classes/String

classify() Instance Public methods Create a class name from a plural table name

2025-01-10 15:47:30
strip_heredoc
  • References/Ruby on Rails/Rails/Classes/String

strip_heredoc() Instance Public methods Strips indentation in heredocs.

2025-01-10 15:47:30
__method_for_multibyte_testing_with_integer_result
  • References/Ruby on Rails/Rails/Classes/String

__method_for_multibyte_testing_with_integer_result() Instance Public methods

2025-01-10 15:47:30
safe_constantize
  • References/Ruby on Rails/Rails/Classes/String

safe_constantize() Instance Public methods safe_constantize tries

2025-01-10 15:47:30
truncate
  • References/Ruby on Rails/Rails/Classes/String

truncate(truncate_at, options = {}) Instance Public methods Truncates a given

2025-01-10 15:47:30
in_time_zone
  • References/Ruby on Rails/Rails/Classes/String

in_time_zone(zone = ::Time.zone) Instance Public methods Converts

2025-01-10 15:47:30
demodulize
  • References/Ruby on Rails/Rails/Classes/String

demodulize() Instance Public methods Removes the module part from the constant

2025-01-10 15:47:30
blank?
  • References/Ruby on Rails/Rails/Classes/String

blank?() Instance Public methods A string is blank if it's empty or contains

2025-01-10 15:47:30
underscore
  • References/Ruby on Rails/Rails/Classes/String

underscore() Instance Public methods The reverse of camelize. Makes

2025-01-10 15:47:30
foreign_key
  • References/Ruby on Rails/Rails/Classes/String

foreign_key(separate_class_name_and_id_with_underscore = true) Instance Public methods Creates

2025-01-10 15:47:30