PATH:
opt
/
alt
/
ruby18
/
share
/
ri
/
1.8
/
system
/
IPAddr
--- !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
[-] ip6_arpa-i.yaml
[edit]
[-] %3c%3d%3e-i.yaml
[edit]
[-] native-i.yaml
[edit]
[-] to_string-i.yaml
[edit]
[-] hton-i.yaml
[edit]
[-] in6_addr-i.yaml
[edit]
[-] ipv4_compat%3f-i.yaml
[edit]
[-] %3d%3d%3d-i.yaml
[edit]
[-] %7e-i.yaml
[edit]
[-] %3c%3c-i.yaml
[edit]
[-] %3e%3e-i.yaml
[edit]
[-] in_addr-i.yaml
[edit]
[-] ipv4_mapped-i.yaml
[edit]
[-] addr_mask-i.yaml
[edit]
[-] include%3f-i.yaml
[edit]
[-] ipv6%3f-i.yaml
[edit]
[-] inspect-i.yaml
[edit]
[-] succ-i.yaml
[edit]
[-] to_range-i.yaml
[edit]
[-] %3d%3d-i.yaml
[edit]
[-] _to_string-i.yaml
[edit]
[-] mask%21-i.yaml
[edit]
[+]
..
[-] new_ntoh-c.yaml
[edit]
[-] cdesc-IPAddr.yaml
[edit]
[-] to_i-i.yaml
[edit]
[-] ntop-c.yaml
[edit]
[-] ipv4%3f-i.yaml
[edit]
[-] new-c.yaml
[edit]
[-] coerce_other-i.yaml
[edit]
[-] set-i.yaml
[edit]
[-] mask-i.yaml
[edit]
[-] %26-i.yaml
[edit]
[-] %7c-i.yaml
[edit]
[-] ipv4_mapped%3f-i.yaml
[edit]
[-] ipv4_compat-i.yaml
[edit]
[-] to_s-i.yaml
[edit]
[-] ip6_int-i.yaml
[edit]
[-] reverse-i.yaml
[edit]
[-] _reverse-i.yaml
[edit]