src code

instance method String#blank

String#blank() → Boolean

Check if the string is "blank" — either empty (length of 0) or containing only whitespace.