Class: Smaak::Utils
- Inherits:
-
Object
- Object
- Smaak::Utils
- Defined in:
- lib/smaak/utils.rb
Class Method Summary collapse
Class Method Details
.non_blank_string?(s) ⇒ Boolean
3 4 5 6 7 8 |
# File 'lib/smaak/utils.rb', line 3 def self.non_blank_string?(s) return false if s.nil? return false unless s.is_a? String return false if s.strip == "" return true end |