Class: String
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Strings are blank if they are empty or include only whitespace.
Instance Method Details
#blank? ⇒ Boolean
Strings are blank if they are empty or include only whitespace
49 50 51 |
# File 'lib/blank.rb', line 49 def blank? strip.empty? end |