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

instance method IPAddr#ipv4?

ipv4? -> bool

IPv4 なら真を返します。

class IPAddr