class RuboCop::Cop::Style::IpAddresses

def could_be_ip?(str)

def could_be_ip?(str)
  # If the string is too long, it can't be an IP
  return false if too_long?(str)
  # If the string doesn't start with a colon or hexadecimal char,
  # we know it's not an IP address
  starts_with_hex_or_colon?(str)
end