Flowdock
method

ip?

Importance_1
v1_9_3_392 - Show latest stable - 0 notes - Class: Addrinfo
ip?() public

returns true if addrinfo is internet (IPv4/IPv6) address. returns false otherwise.

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