Module: Treequel::LDAPControlExtensions

Included in:
LDAP::Control
Defined in:
lib/treequel/monkeypatches.rb

Overview

Extensions to LDAP::Control to make them grok ==.

Instance Method Summary collapse

Instance Method Details

#==(other) ⇒ Object

Returns true if the other LDAP::Control is equivalent to the receiver.



15
16
17
18
19
20
# File 'lib/treequel/monkeypatches.rb', line 15

def ==( other )
  return ( other.class == self.class ) &&
    other.oid == self.oid &&
    other.value == self.value &&
    other.iscritical == self.iscritical
end