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