File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ class IMAP
151
151
# +nil+ if the object cannot be converted to a compatible type.
152
152
# - #cover? (aliased as #===):
153
153
# Returns whether a given object is fully contained within +self+.
154
- # - #intersect?:
154
+ # - #intersect? (aliased as #overlap?) :
155
155
# Returns whether +self+ and a given object have any common elements.
156
156
# - #disjoint?:
157
157
# Returns whether +self+ and a given object have no common elements.
@@ -502,6 +502,7 @@ def include_star?; @tuples.last&.last == STAR_INT end
502
502
def intersect? ( other )
503
503
valid? && input_to_tuples ( other ) . any? { intersect_tuple? _1 }
504
504
end
505
+ alias overlap? intersect?
505
506
506
507
# Returns +true+ if the set and a given object have no common elements,
507
508
# +false+ otherwise.
You can’t perform that action at this time.
0 commit comments