ipv4_compat?() Instance Public methods Returns true if the ipaddr is an IPv4-compatible IPv6 address.
ipv4_compat() Instance Public methods Returns a new ipaddr built by converting the native IPv4 address into an IPv4-compatible IPv6 address.
ipv4?() Instance Public methods Returns true if the ipaddr is an IPv4 address.
ip6_int() Instance Public methods Returns a string for DNS reverse lookup compatible with RFC1886.
ip6_arpa() Instance Public methods Returns a string for DNS reverse lookup compatible with RFC3172.
inspect() Instance Public methods Returns a string containing a human-readable representation of the ipaddr. (â#<IPAddr: family:address/mask>â)
include?(other) Instance Public methods Returns true if the given ipaddr is in the range. e.g.: require 'ipaddr' net1 = IPAddr.new("192.168.2.0/24") net2 = IPAddr.new("192.168.2.100") net3 = IPAddr.new("192.168.3.0") p net1.include?(net2) #=> true p net1.include?(net3) #=> false ===
hton() Instance Public methods Returns a network byte ordered string form of the IP address.
hash() Instance Public methods Returns a hash value used by Hash, Set, and Array classes
eql?(other) Instance Public methods Checks equality used by Hash.
Page 1903 of 2275