lib/schedulability/schedule.rb in schedulability-0.3.0 vs lib/schedulability/schedule.rb in schedulability-0.4.0

- old
+ new

@@ -65,23 +65,23 @@ time_obj end return ! self.negative_periods_include?( time_obj ) && self.positive_periods_include?( time_obj ) - end + end ### Returns +true+ if any of the schedule's positive periods include the ### specified +time+. def positive_periods_include?( time ) return self.positive_periods.empty? || find_matching_period_for( time, self.positive_periods ) - end + end - ### Returns +true+ if any of the schedule's negative periods include the - ### specified +time+. - def negative_periods_include?( time ) + ### Returns +true+ if any of the schedule's negative periods include the + ### specified +time+. + def negative_periods_include?( time ) return find_matching_period_for( time, self.negative_periods ) end ### Returns +true+ if the schedule has any times which overlap those of +other_schedule+.