Class: String
Instance Method Summary collapse
-
#blank? ⇒ Boolean
A string is blank if it’s empty or contains whitespaces only:.
Instance Method Details
#blank? ⇒ Boolean
A string is blank if it’s empty or contains whitespaces only:
"".blank? # => true
" ".blank? # => true
" something here ".blank? # => false
98 99 100 |
# File 'lib/fission/core_ext/object.rb', line 98 def blank? self !~ /\S/ end |