End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
IPAddr#ipv6?
ipv6?
lib/ipaddr.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/ipaddr.rb, line 247
def ipv6?
return @family == Socket::AF_INET6
end
Returns true if the ipaddr is an IPv6 address.
See also
#ipv4_mapped?
#link_local?
#ipv4_mapped
#loopback?
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.1 · 3.0