lib/timeboss/calendar/period.rb in timeboss-0.3.1 vs lib/timeboss/calendar/period.rb in timeboss-1.0.0
- old
+ new
@@ -128,9 +128,13 @@
# @return [Range<Date, Date>]
def to_range
@_to_range ||= start_date .. end_date
end
+ def inspect
+ "#<#{self.class.name}[#{self.begin.inspect}..#{self.end.inspect}] start_date=#{start_date}, end_date=#{end_date}>"
+ end
+
private
attr_reader :calendar
def initialize(calendar, begin_basis, end_basis = nil)