ipv4_compat() Instance Public methods Returns a new ipaddr built by converting the native IPv4 address into an IPv4-compatible IPv6 address.
ipv4_compat?() Instance Public methods Returns true if the ipaddr is an IPv4-compatible IPv6 address.
ipv4_mapped() Instance Public methods Returns a new ipaddr built by converting the native IPv4 address into an IPv4-mapped IPv6 address.
ipv4_mapped?() Instance Public methods Returns true if the ipaddr is an IPv4-mapped IPv6 address.
ipv6?() Instance Public methods Returns true if the ipaddr is an IPv6 address.
mask(prefixlen) Instance Public methods Returns a new ipaddr built by masking IP address with the given prefixlen/netmask. (e.g. 8, 64, â255.255.255.0â, etc.)
native() Instance Public methods Returns a new ipaddr built by converting the IPv6 address into a native IPv4 address. If the IP address is not an IPv4-mapped or IPv4-compatible IPv6 address, returns self.
reverse() Instance Public methods Returns a string for DNS reverse lookup. It returns a string in RFC3172 form for an IPv6 address.
succ() Instance Public methods Returns the successor to the ipaddr.
to_i() Instance Public methods Returns the integer representation of the ipaddr.
Page 430 of 11844