class Chronic::RepeaterYear
def next(pointer)
def next(pointer) super if !@current_year_start case pointer when :future @current_year_start = Chronic.construct(@now.year + 1) when :past @current_year_start = Chronic.construct(@now.year - 1) end else diff = pointer == :future ? 1 : -1 @current_year_start = Chronic.construct(@current_year_start.year + diff) end Span.new(@current_year_start, Chronic.construct(@current_year_start.year + 1)) end