Flowdock
method

inspect

Importance_1
Ruby latest stable (v1_9_3_392) - 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:80)>"
Addrinfo.unix("/tmp/sock").inspect    #=> "#<Addrinfo: /tmp/sock SOCK_STREAM>"
Show source
Register or log in to add new notes.