Class: Secretmgr::Util

Inherits:
Object
  • Object
show all
Defined in:
lib/secretmgr/util.rb

Class Method Summary collapse

Class Method Details

.nil_or_dontexist?(pathn) ⇒ Boolean

Returns:

  • (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

Returns:

  • (Boolean)


10
11
12
# File 'lib/secretmgr/util.rb', line 10

def nil_or_zero?(str)
  str.nil? || str.empty?
end