Skip to content

End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →

instance method

IPAddr#zone_id

zone_id

Returns the IPv6 zone identifier, if present. Raises InvalidAddressError if not an IPv6 address.

See also #zone_id= #to_string #_to_string also in 4.1 · 4.0 · 3.4 · 3.3 · 3.2