class Chronic::RepeaterDayPortion
def initialize(type, options = {})
def initialize(type, options = {}) super @current_span = nil if type.kind_of? Integer @range = (@type * 60 * 60)..((@type + 12) * 60 * 60) else @range = PORTIONS[type] @range || raise("Invalid type '#{type}' for RepeaterDayPortion") end @range || raise("Range should have been set by now") end