This is a Ruby tree! It shows every object from the Ruby Programming Language in a tree format.
# IPAddr < Object --- # Includes: Comparable (from ruby core) (from ruby core) --- IPAddr provides a set of methods to manipulate an IP address. Both IPv4 and IPv6 are supported. ## Example 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> p ipaddr1.to_s #=> "3ffe:505:2::1" ipaddr2 = ipaddr1.mask(48) #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0000/ffff:ffff:ffff:0000:0000:0000:0000:0000> p ipaddr2.to_s #=> "3ffe:505:2::" ipaddr3 = IPAddr.new "192.168.2.0/24" p ipaddr3 #=> #<IPAddr: IPv4:192.168.2.0/255.255.255.0> --- # Constants: IN4MASK : 32 bit mask for IPv4 IN6FORMAT : Format string for IPv6 IN6MASK : 128 bit mask for IPv6 RE_IPV4ADDRLIKE : Regexp *internally* used for parsing IPv4 address. RE_IPV6ADDRLIKE_COMPRESSED : Regexp *internally* used for parsing IPv6 address. RE_IPV6ADDRLIKE_FULL : Regexp *internally* used for parsing IPv6 address. VERSION : [not documented] # Class methods: new new_ntoh ntop # Instance methods: & << <=> == === >> _ipv4_compat? _reverse _to_string addr_mask coerce_other eql? family hash hton in6_addr in_addr include? inspect ip6_arpa ip6_int ipv4? ipv4_compat ipv4_compat? ipv4_mapped ipv4_mapped? ipv6? link_local? loopback? mask mask! native netmask prefix prefix= private? reverse set succ to_i to_range to_s to_string zone_id zone_id= | ~ # Attributes: attr_reader family
This is MURDOC! A Ruby documentation browser inspired by Smalltalk-80. It allows you to learn about Ruby by browsing through its class hierarchies, and see any of its methods.