Sha256: d2a5d8e8847113874fa663f501032cf4ddc6929a87627e5eb3f6b3cfeb58f600

Contents?: true

Size: 192 Bytes

Versions: 7

Compression:

Stored size: 192 Bytes

Contents

class Range

  # Do two ranges overlap?
  #
  #   CREDIT: Daniel Schierbeck
  #   CREDIT: Brandon Keepers

  def overlap?(other)
    include?(other.first) or other.include?(first)
  end

end

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
facets-2.4.0 lib/facets/range/overlap.rb
facets-2.4.1 lib/facets/range/overlap.rb
facets-2.4.3 lib/core/facets/range/overlap.rb
facets-2.4.2 lib/core/facets/range/overlap.rb
facets-2.4.4 lib/core/facets/range/overlap.rb
facets-2.4.5 lib/core/facets/range/overlap.rb
mack-facets-0.8.2 lib/gems/facets-2.4.5/lib/core/facets/range/overlap.rb