lib/facter/security_baseline/common/check_value_integer.rb
def check_value_integer(val, default = 0)
  if val.nil? || val.empty?
    default.to_i
  else
    val.to_i
  end
end
# check a value and return a value depending on conditions
check a value and return a value depending on conditions
check a value and return a value depending on conditions
def check_value_integer(val, default = 0)
  if val.nil? || val.empty?
    default.to_i
  else
    val.to_i
  end
end
def check_value_integer ( val , default = 0 ) if val . nil? || val . empty? default . to_i else val . to_i end end
check a value and return a value depending on conditions
check a value and return a value depending on conditions
val
default