Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/unified2/core_ext/string.rb
Overview
String monkeypatches
Instance Method Summary collapse
-
#blank? ⇒ true, false
Blank?.
Instance Method Details
#blank? ⇒ true, false
Blank?
is blank or empty return true.
12 13 14 15 |
# File 'lib/unified2/core_ext/string.rb', line 12 def blank? return true if (self.nil? || self == '') false end |