lib/overlaps_extension.rb in overlaps_extension-0.0.5 vs lib/overlaps_extension.rb in overlaps_extension-0.0.6

- old
+ new

@@ -1,8 +1,14 @@ # frozen_string_literal: true Array.class_eval do # @return [Boolean] def overlaps?(other) - (self & Array(other)).present? + !(self & Array(other)).empty? end +end + +Set.class_eval do + extend Forwardable + + def_delegators :to_a, :overlaps? end