method

socket?

v2_1_10 - Show latest stable - Class: FileTest
socket?(p1)
public

Returns true if the named file is a socket.

file_name can be an IO object.