Ruby 1.9.0 リファレンスマニュアル > ライブラリ一覧 > library ipaddr > class IPAddr > family
family -> Integer
このオブジェクトのアドレスファミリを返します。
[SEE_ALSO] Socket