to_s() Instance Public methods Returns a string containing the IP address representation.
to_range() Instance Public methods Creates a Range object for the network address.
to_i() Instance Public methods Returns the integer representation of the ipaddr.
succ() Instance Public methods Returns the successor to the ipaddr.
reverse() Instance Public methods Returns a string for DNS reverse lookup. It returns a string in RFC3172 form for an IPv6 address.
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.
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.)
ipv6?() Instance Public methods Returns true if the ipaddr is an IPv6 address.
ipv4_mapped?() Instance Public methods Returns true if the ipaddr is an IPv4-mapped IPv6 address.
ipv4_mapped() Instance Public methods Returns a new ipaddr built by converting the native IPv4 address into an IPv4-mapped IPv6 address.
Page 1902 of 2275