inspect

addrinfo.inspect => string
Instance Public methods

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>"
doc_ruby_on_rails
2015-03-30 06:15:20
Comments
Leave a Comment

Please login to continue.