class PLRuby::MacAddr
The class PLRuby::MacAddr implement the PostgreSQL type macaddr
Public Class Methods
from_string(string, cidr = false)
click to toggle source
Convert a String to a MacAddr
# File plruby.rb, line 1242 def from_string(string, cidr = false) end
new(string)
click to toggle source
create a MacAddr from a String
# File plruby.rb, line 1251 def initialize(string) end
Public Instance Methods
<=>(other)
click to toggle source
comparison function for 2 MacAddr objects
# File plruby.rb, line 1247 def <=>(other) end
to_s()
click to toggle source
return the string representation of the MAC address
# File plruby.rb, line 1255 def to_s end
truncate()
click to toggle source
return a new object with the last 3 bytes set to zero
# File plruby.rb, line 1259 def truncate end