blank?()
Instance Public methods
A string is blank if it's empty or contains whitespaces only:
1 2 3 4 | '' .blank? # => true ' ' .blank? # => true "\t\n\r" .blank? # => true ' blah ' .blank? # => false |
Unicode whitespace is supported:
1 | "\u00a0" .blank? # => true |
@return [true, false]
Please login to continue.