type=class
superclass=Object
included=
extended=
dynamically_included=
dynamically_extended=
library=ipaddr
aliases=
aliasof=

IP アドレスを扱うのためのクラスです。

例:

  require 'ipaddr'
  
  ipaddr1 = IPAddr.new("3ffe:505:2::1")
  p ipaddr1   # => #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
  
  ipaddr3 = IPAddr.new("192.168.2.0/24")
  p ipaddr3   # => #<IPAddr: IPv4:192.168.2.0/255.255.255.0>

=== 参照

  * [[RFC:3513]]
