method

set

v2_2_9 - Show latest stable - Class: IPAddr
set(addr, *family)
protected

Set +@addr+, the internal stored ip address, to given addr. The parameter addr is validated using the first family member, which is +Socket::AF_INET+ or +Socket::AF_INET6+.