The script has to verify if one predefined IP is present in a big array of IPs. Currently I code that function like this (saying that \"ips\" is my array of IP and \"ip\" is the
A faster way would be:
if ips.include?(ip) puts "ip exists" return 1 else puts "ip doesn't exist" return nil end