method

family

v1_9_2_180 - Show latest stable - Class: Socket::Option
family()
public

returns the socket family as an integer.

p Socket::Option.new(:INET6, :IPV6, :RECVPKTINFO, [1].pack("i!")).family
#=> 10