Skip to content

Commit 14f9b14

Browse files
committed
Add rdoc
1 parent 37b4eae commit 14f9b14

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

lib/mongo/address.rb

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,16 @@ def ==(other)
6363
host == other.host && port == other.port
6464
end
6565

66+
# Check equality for hashing.
67+
#
68+
# @example Check hashing equality.
69+
# address.eql?(other)
70+
#
71+
# @param [ Object ] other The other object.
72+
#
73+
# @return [ true, false ] If the objects are equal.
74+
#
75+
# @since 2.2.0
6676
def eql?(other)
6777
self == other
6878
end

0 commit comments

Comments
 (0)