Method: ActiveLdap::Base#==

Defined in:
lib/active_ldap/base.rb

#==(comparison_object) ⇒ Object

Returns true if the comparison_object is the same object, or is of the same type and has the same dn.



508
509
510
511
512
513
# File 'lib/active_ldap/base.rb', line 508

def ==(comparison_object)
  comparison_object.equal?(self) or
    (comparison_object.instance_of?(self.class) and
     comparison_object.dn == dn and
     !comparison_object.new_entry?)
end