method

valid?

ruby latest stable - Class: IPSocket

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v1_9_3_125) is shown here.

valid?(addr)
public

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