lib/roxbury/business_day.rb in roxbury-0.2.1 vs lib/roxbury/business_day.rb in roxbury-0.2.2
- old
+ new
@@ -20,9 +20,13 @@
def starts_after? timestamp
same_day?(timestamp) && @working_hours.starts_after?(timestamp)
end
+ def ends_before? timestamp
+ same_day?(timestamp) && @working_hours.ends_before?(timestamp)
+ end
+
def at_beginning
@working_hours.at_beginning @date
end
def at_end