Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/rtasklib/helpers.rb
Overview
Monkey patching String, instead of importing ActiveSupport, bc its overkill for what we were using it for
Instance Method Summary (collapse)
-
- (Boolean) blank?
Returns true for blank Strings.
Instance Method Details
- (Boolean) blank?
Returns true for blank Strings
20 21 22 |
# File 'lib/rtasklib/helpers.rb', line 20 def blank? self.strip.empty? end |