= private = protected
blank?()
A string is blank if it’s empty or contains whitespaces only:
"".blank? # => true " ".blank? # => true "ã".blank? # => true " something here ".blank? # => false
# File activesupport/lib/active_support/core_ext/object/blank.rb, line 101 def blank? # 1.8 does not takes [:space:] properly if encoding_aware? self !~ /[^[:space:]]/ else self !~ NON_WHITESPACE_REGEXP end end