Class: String
- Includes:
- ActiveSupport::CoreExtensions::String::Access, ActiveSupport::CoreExtensions::String::Conversions, ActiveSupport::CoreExtensions::String::Inflections, ActiveSupport::CoreExtensions::String::StartsEndsWith
- Defined in:
- lib/active_support/core_ext/blank.rb,
lib/active_support/core_ext/string.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods included from ActiveSupport::CoreExtensions::String::StartsEndsWith
Methods included from ActiveSupport::CoreExtensions::String::Inflections
#camelize, #classify, #constantize, #demodulize, #foreign_key, #humanize, #pluralize, #singularize, #tableize, #titleize, #underscore
Methods included from ActiveSupport::CoreExtensions::String::Conversions
Methods included from ActiveSupport::CoreExtensions::String::Access
#at, #first, #from, #last, #to
Instance Method Details
#blank? ⇒ Boolean
29 30 31 |
# File 'lib/active_support/core_ext/blank.rb', line 29 def blank? empty? || strip.empty? end |