lib/facter/security_baseline/common/check_value_boolean.rb
def check_value_boolean(val, default)
  ret = if default == true
          false
        else
          true
        end

  if val.nil? || val.empty?
    default
  else
    ret
  end
end
# check a value and return a boolean value depending on conditions
check a value and return a boolean value depending on conditions
check a value and return a boolean value depending on conditions
def check_value_boolean(val, default)
  ret = if default == true
          false
        else
          true
        end
  if val.nil? || val.empty?
    default
  else
    ret
  end
end
def check_value_boolean ( val , default ) ret = if default == true false else true end if val . nil? || val . empty? default else ret end end
check a value and return a boolean value depending on conditions
check a value and return a boolean value depending on conditions
val
default