Hacked By AnonymousFox
--- !ruby/object:RI::ClassDescription
attributes:
- !ruby/object:RI::Attribute
comment:
- !ruby/struct:SM::Flow::P
body: Returns the address family of this IP address.
name: family
rw: R
class_methods:
- !ruby/object:RI::MethodSummary
name: new
- !ruby/object:RI::MethodSummary
name: new_ntoh
- !ruby/object:RI::MethodSummary
name: ntop
comment:
- !ruby/struct:SM::Flow::P
body: IPAddr provides a set of methods to manipulate an IP address. Both IPv4 and IPv6 are supported.
- !ruby/struct:SM::Flow::H
level: 2
text: Example
- !ruby/struct:SM::Flow::VERB
body: " require 'ipaddr'\n\n ipaddr1 = IPAddr.new "3ffe:505:2::1"\n\n p ipaddr1 #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>\n\n p ipaddr1.to_s #=> "3ffe:505:2::1"\n\n ipaddr2 = ipaddr1.mask(48) #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0000/ffff:ffff:ffff:0000:0000:0000:0000:0000>\n\n p ipaddr2.to_s #=> "3ffe:505:2::"\n\n ipaddr3 = IPAddr.new "192.168.2.0/24"\n\n p ipaddr3 #=> #<IPAddr: IPv4:192.168.2.0/255.255.255.0>\n"
constants:
- !ruby/object:RI::Constant
comment:
name: IN4MASK
value: "0xffffffff"
- !ruby/object:RI::Constant
comment:
name: IN6MASK
value: "0xffffffffffffffffffffffffffffffff"
- !ruby/object:RI::Constant
comment:
name: IN6FORMAT
value: (["%.4x"] * 8).join(':')
full_name: IPAddr
includes:
- !ruby/object:RI::IncludedModule
name: Comparable
instance_methods:
- !ruby/object:RI::MethodSummary
name: "&"
- !ruby/object:RI::MethodSummary
name: "<<"
- !ruby/object:RI::MethodSummary
name: <=>
- !ruby/object:RI::MethodSummary
name: ==
- !ruby/object:RI::MethodSummary
name: ===
- !ruby/object:RI::MethodSummary
name: ">>"
- !ruby/object:RI::MethodSummary
name: _reverse
- !ruby/object:RI::MethodSummary
name: _to_string
- !ruby/object:RI::MethodSummary
name: addr_mask
- !ruby/object:RI::MethodSummary
name: coerce_other
- !ruby/object:RI::MethodSummary
name: hton
- !ruby/object:RI::MethodSummary
name: in6_addr
- !ruby/object:RI::MethodSummary
name: in_addr
- !ruby/object:RI::MethodSummary
name: include?
- !ruby/object:RI::MethodSummary
name: inspect
- !ruby/object:RI::MethodSummary
name: ip6_arpa
- !ruby/object:RI::MethodSummary
name: ip6_int
- !ruby/object:RI::MethodSummary
name: ipv4?
- !ruby/object:RI::MethodSummary
name: ipv4_compat
- !ruby/object:RI::MethodSummary
name: ipv4_compat?
- !ruby/object:RI::MethodSummary
name: ipv4_mapped
- !ruby/object:RI::MethodSummary
name: ipv4_mapped?
- !ruby/object:RI::MethodSummary
name: ipv6?
- !ruby/object:RI::MethodSummary
name: mask
- !ruby/object:RI::MethodSummary
name: mask!
- !ruby/object:RI::MethodSummary
name: native
- !ruby/object:RI::MethodSummary
name: reverse
- !ruby/object:RI::MethodSummary
name: set
- !ruby/object:RI::MethodSummary
name: succ
- !ruby/object:RI::MethodSummary
name: to_i
- !ruby/object:RI::MethodSummary
name: to_range
- !ruby/object:RI::MethodSummary
name: to_s
- !ruby/object:RI::MethodSummary
name: to_string
- !ruby/object:RI::MethodSummary
name: "|"
- !ruby/object:RI::MethodSummary
name: "~"
name: IPAddr
superclass: Object
Hacked By AnonymousFox1.0, Coded By AnonymousFox