ruby-ldap / ruby-net-ldap

Pure Ruby LDAP library
https://rubygems.org/gems/net-ldap
Other
399 stars 253 forks source link

Implement == #372

Closed HarlemSquirrel closed 4 years ago

HarlemSquirrel commented 4 years ago

I think we should be able to compare entries with == just like we do with hashes.

Hash.new(dn: 'dc=example,dc=com') == Hash.new(dn: 'dc=example,dc=com')
# => true

Net::LDAP::Entry.new(dn: 'dc=example,dc=com') == Net::LDAP::Entry.new(dn: 'dc=example,dc=com')
# => false