Flowdock
method

blank?

Importance_1
Ruby on Rails latest stable (v4.2.1) - 0 notes - Class: String
blank?() public

A string is blank if it’s empty or contains whitespaces only:

''.blank?       # => true
'   '.blank?    # => true
"\t\n\r".blank? # => true
' blah '.blank? # => false

Unicode whitespace is supported:

"\u00a0".blank? # => true

@return [true, false]

Show source
Register or log in to add new notes.