Flowdock
method

ipv4?

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

returns true if addrinfo is IPv4 address. returns false otherwise.

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