Flowdock
method

to_s

Importance_1
v1_9_2_180 - Show latest stable - 0 notes - Class: Addrinfo
to_s() public

returns the socket address as packed struct sockaddr string.

Addrinfo.tcp("localhost", 80).to_sockaddr
#=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
Show source
Register or log in to add new notes.