Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/R3EXS/utils.rb
Instance Method Summary collapse
-
#blank? ⇒ Boolean
Checks whether a string is blank.
Instance Method Details
#blank? ⇒ Boolean
Checks whether a string is blank. A string is considered blank if it is either empty or contains only whitespace characters.
426 427 428 |
# File 'lib/R3EXS/utils.rb', line 426 def blank? empty? || lstrip.empty? end |