method

valid?

v1_9_3_125 - Show latest stable - Class: IPSocket
valid?(addr)
public

Returns true if addr is either a valid IPv4 or IPv6 address.