class Chronic::RepeaterSeason
def this(pointer = :future)
def this(pointer = :future) super direction = pointer == :future ? 1 : -1 today = Time.construct(@now.year, @now.month, @now.day) this_ssn = find_current_season(@now.to_minidate) case pointer when :past this_ssn_start = today + direction * num_seconds_til_start(this_ssn, direction) this_ssn_end = today when :future this_ssn_start = today + RepeaterDay::DAY_SECONDS this_ssn_end = today + direction * num_seconds_til_end(this_ssn, direction) when :none this_ssn_start = today + direction * num_seconds_til_start(this_ssn, direction) this_ssn_end = today + direction * num_seconds_til_end(this_ssn, direction) end construct_season(this_ssn_start, this_ssn_end) end