lib/roxbury/working_hours.rb in roxbury-0.2.1 vs lib/roxbury/working_hours.rb in roxbury-0.2.2
- old
+ new
@@ -33,9 +33,13 @@
def starts_after? timestamp
timestamp < at_beginning(timestamp)
end
+ def ends_before? timestamp
+ timestamp > at_end(timestamp)
+ end
+
def at_beginning timestamp
timestamp.change(hour: begins_at, min: 0, sec: 0)
end
def at_end timestamp