Object
The class PLRuby::NetAddr implement the PostgreSQL type inet and cidr
Convert a String to a NetAddr
# File plruby.rb, line 1152 def from_string(string, cidr = false) end
create a NetAddr from a String
# File plruby.rb, line 1204 def initialize(string, cidr = false) end
comparison function for 2 NetAddr objects
comparison is first on the common bits of the network part, then on the length of the network part, and then on the whole unmasked address.
# File plruby.rb, line 1160 def <=>(other) end
return the abbreviated display format as a String object
# File plruby.rb, line 1164 def abbrev end
return the broadcast address from the network
# File plruby.rb, line 1168 def broadcast end
return true if other is included in self
# File plruby.rb, line 1172 def contain?(other) end
return true if other is included in self, or equal
# File plruby.rb, line 1176 def contain_or_equal?(other) end
return true if self is included in other
# File plruby.rb, line 1180 def contained?(other) end
return true if self is included in other, or equal
# File plruby.rb, line 1184 def contained_or_equal?(other) end
return the String "AF_INET" or "AF_INET6"
# File plruby.rb, line 1188 def family end
return the first address in the network
# File plruby.rb, line 1192 def first end
extract the IP address and return it as a String
# File plruby.rb, line 1196 def host end
return the host mask for network
# File plruby.rb, line 1200 def hostmask end
return the last address in the network
# File plruby.rb, line 1208 def last end
return the length of the netmask
# File plruby.rb, line 1212 def masklen end
return the netmask for the network
# File plruby.rb, line 1216 def netmask end
return the network part of the address
# File plruby.rb, line 1220 def network end
return a new NetAddr with netmask length len
# File plruby.rb, line 1224 def set_masklen(len) end
Generated with the Darkfish Rdoc Generator 2.