# File lib/ice_cube/occurrence.rb, line 52 def intersects?(other) return cover?(other) unless other.is_a?(Occurrence) || other.is_a?(Range) this_start = first + 1 this_end = last # exclude end boundary other_start = other.first + 1 other_end = other.last + 1 !(this_end < other_start || this_start > other_end) end