method

unix?

Importance_1
Ruby latest stable (v2_5_5) - 0 notes - Class: Addrinfo
unix?() public

returns true if addrinfo is UNIX address. returns false otherwise.

Addrinfo.tcp("127.0.0.1", 80).unix? #=> false
Addrinfo.tcp("::1", 80).unix?       #=> false
Addrinfo.unix("/tmp/sock").unix?    #=> true
Show source
Register or log in to add new notes.