Module: Treequel::LDAPModExtensions
- Included in:
- LDAP::Mod
- Defined in:
- lib/treequel/monkeypatches.rb
Overview
Extensions to LDAP::Mods to make them grok ==.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Returns
trueif theotherLDAP::Record is equivalent to the receiver.
Instance Method Details
#==(other) ⇒ Object
Returns true if the other LDAP::Record is equivalent to the receiver.
35 36 37 38 39 40 |
# File 'lib/treequel/monkeypatches.rb', line 35 def ==( other ) return ( other.class == self.class ) && ( self.mod_op == other.mod_op ) && ( self.mod_type == other.mod_type ) && ( self.mod_vals == other.mod_vals ) end |