is_network method

bool is_network()

Checks if the IP address is actually a network

ip = IPAddress("172.16.10.64/24")

ip.network? /// false

ip = IPAddress("172.16.10.64/26")

ip.network? /// true

Implementation

bool is_network() {
  return this.prefix.num != this.ip_bits.bits &&
      this.host_address == this.network().host_address;
}