= 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 91 def blank? self !~ /[^[:space:]]/ end