lib/timeboss/calendar/day.rb in timeboss-0.0.8 vs lib/timeboss/calendar/day.rb in timeboss-0.0.9
- old
+ new
@@ -22,14 +22,16 @@
def index
@_index ||= (start_date - calendar.year_for(start_date).start_date).to_i + 1
end
- def previous
+ private
+
+ def down
self.class.new(calendar, start_date - 1.day)
end
- def next
+ def up
self.class.new(calendar, start_date + 1.day)
end
end
end
end