method

inspect

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

returns a string which shows addrinfo in human-readable form.

Addrinfo.tcp("localhost", 80).inspect #=> "#<Addrinfo: 127.0.0.1:80 TCP (localhost)>"
Addrinfo.unix("/tmp/sock").inspect    #=> "#<Addrinfo: /tmp/sock SOCK_STREAM>"
Show source
Register or log in to add new notes.