lib/overlaps_extension.rb in overlaps_extension-0.0.1 vs lib/overlaps_extension.rb in overlaps_extension-0.0.3
- old
+ new
@@ -1,9 +1,7 @@
# frozen_string_literal: true
-require 'active_support/core_ext/object/blank'
-
-class Array
+Array.class_eval do
# @return [Boolean]
def overlaps?(other)
(self & Array(other)).present?
end
end