Public Instance methods
intersect?(arr)
Ruby 3.1 backport
[show source]
# File lib/httpx/extensions.rb 10 def intersect?(arr) 11 if size < arr.size 12 smaller = self 13 else 14 smaller, arr = arr, self 15 end 16 (arr & smaller).size > 0 17 end