Class PLRuby::NetAddr
In: plruby.rb
Parent: Object

The class PLRuby::NetAddr implement the PostgreSQL type inet and cidr

Methods

Included Modules

Comparable

Public Class methods

create a NetAddr from a String

Public Instance methods

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.

return the abbreviated display format as a String object

return the broadcast address from the network

return true if other is included in self

return true if other is included in self, or equal

return true if self is included in other

return true if self is included in other, or equal

return the String "AF_INET" or "AF_INET6"

return the first address in the network

extract the IP address and return it as a String

return the host mask for network

return the last address in the network

return the length of the netmask

return the netmask for the network

return the network part of the address

return a new NetAddr with netmask length len

return the string representation of the address

[Validate]