lib/time_range.rb
# Compares another time range for any kind of overlap; partial or complete.
#
# @param [TimeRange] time_range time range to compare for overlap
# @return [Boolean] whether contents of two TimeRanges overlap
Compares another time range for any kind of overlap; partial or complete.
Compares another time range for any kind of overlap ; partial or complete .
def overlaps?(time_range)
    raise TypeError unless time_range.is_a?(TimeRange)
    %w(begins_within? ends_within? encapsulates?).any? do |condition|
      send(condition, time_range)
    end
  end
def overlaps? ( time_range ) raise TypeError unless time_range . is_a? ( TimeRange ) %w( begins_within? ends_within? encapsulates? ) . any? do | condition | send ( condition , time_range ) end end
Compares another time range for any kind of overlap; partial or complete.
Compares another time range for any kind of overlap ; partial or complete .
whether contents of two TimeRanges overlap
whether contents of two TimeRanges overlap
Boolean
time_range
time_range time range to compare for overlap
time_range time range to compare for overlap