Class: String
- Includes:
- ActiveSupport::CoreExtensions::String::Access, ActiveSupport::CoreExtensions::String::Conversions, ActiveSupport::CoreExtensions::String::Inflections, ActiveSupport::CoreExtensions::String::Iterators, ActiveSupport::CoreExtensions::String::StartsEndsWith
- Defined in:
- lib/active_support/core_ext/blank.rb,
lib/active_support/core_ext/string.rb
Overview
:nodoc:
Direct Known Subclasses
Instance Method Summary collapse
Methods included from ActiveSupport::CoreExtensions::String::Iterators
Methods included from ActiveSupport::CoreExtensions::String::StartsEndsWith
Methods included from ActiveSupport::CoreExtensions::String::Inflections
#camelize, #classify, #constantize, #dasherize, #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
41 42 43 |
# File 'lib/active_support/core_ext/blank.rb', line 41 def blank? empty? || strip.empty? end |