Ruby 1.8.7 リファレンスマニュアル > ライブラリ一覧 > ipaddrライブラリ > IPAddrクラス > ipv6?

instance method IPAddr#ipv6?

ipv6? -> bool

IPv6 なら真を返します。

class IPAddr