Class: String
Overview
class FalseClass
Instance Method Summary collapse
-
#blank? ⇒ TrueClass, FalseClass
Strips out whitespace then tests if the string is empty.
Instance Method Details
#blank? ⇒ TrueClass, FalseClass
Strips out whitespace then tests if the string is empty.
"".blank? #=> true
" ".blank? #=> true
" hey ho ".blank? #=> false
90 91 92 |
# File 'lib/configliere/core_ext/blank.rb', line 90 def blank? strip.empty? end |