Class: Secretmgr::Util
- Inherits:
-
Object
- Object
- Secretmgr::Util
- Defined in:
- lib/secretmgr/util.rb
Class Method Summary collapse
Class Method Details
.nil_or_dontexist?(pathn) ⇒ Boolean
6 7 8 |
# File 'lib/secretmgr/util.rb', line 6 def nil_or_dontexist?(pathn) pathn.nil? || !pathn.exist? end |
.nil_or_zero?(str) ⇒ Boolean
10 11 12 |
# File 'lib/secretmgr/util.rb', line 10 def nil_or_zero?(str) str.nil? || str.empty? end |