class Chronic::RepeaterYear
def this(pointer = :future)
def this(pointer = :future) super case pointer when :future this_year_start = Time.construct(@now.year, @now.month, @now.day) + RepeaterDay::DAY_SECONDS this_year_end = Time.construct(@now.year + 1, 1, 1) when :past this_year_start = Time.construct(@now.year, 1, 1) this_year_end = Time.construct(@now.year, @now.month, @now.day) when :none this_year_start = Time.construct(@now.year, 1, 1) this_year_end = Time.construct(@now.year + 1, 1, 1) end Span.new(this_year_start, this_year_end) end