class Chronic::RepeaterHour
def next(pointer)
def next(pointer) super unless @current_hour_start case pointer when :future @current_hour_start = Chronic.construct(@now.year, @now.month, @now.day, @now.hour + 1) when :past @current_hour_start = Chronic.construct(@now.year, @now.month, @now.day, @now.hour - 1) end else direction = pointer == :future ? 1 : -1 @current_hour_start += direction * HOUR_SECONDS end Span.new(@current_hour_start, @current_hour_start + HOUR_SECONDS) end