Skip to content

Commit 5139079

Browse files
committed
Add signature for Set#compare_by_identity?
1 parent c80e5bf commit 5139079

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

core/set.rbs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,15 @@ class Set[unchecked out A]
414414
#
415415
def compare_by_identity: () -> self
416416

417+
# <!--
418+
# rdoc-file=lib/set.rb
419+
# - compare_by_identity?()
420+
# -->
421+
# Returns true if the set will compare its elements by their
422+
# identity. Also see Set#compare_by_identity.
423+
#
424+
def compare_by_identity?: () -> bool
425+
417426
# <!--
418427
# rdoc-file=lib/set.rb
419428
# - disjoint?(set)

0 commit comments

Comments
 (0)