Sha256: 1615a088cca3edd464a187eec90cdca9bbb25650c4500859728116824968b19d

Contents?: true

Size: 141 Bytes

Versions: 3

Compression:

Stored size: 141 Bytes

Contents

# frozen_string_literal: true

Array.class_eval do
  # @return [Boolean]
  def overlaps?(other)
    (self & Array(other)).present?
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
overlaps_extension-0.0.5 lib/overlaps_extension.rb
overlaps_extension-0.0.4 lib/overlaps_extension.rb
overlaps_extension-0.0.3 lib/overlaps_extension.rb