aggregator/stock.rb
# Move to the next symbol as configured
Move to the next symbol as configured
Move to the next symbol as configured
def next_symbol
    @current_symbol_index += 1
    if @current_symbol_index >= @symbols.length
      @current_symbol = @symbols.first
      @current_symbol_index = 0
    else
      @current_symbol = @symbols[@current_symbol_index]
    end
  end
def next_symbol @current_symbol_index += 1 if @current_symbol_index >= @symbols . length @current_symbol = @symbols . first @current_symbol_index = 0 else @current_symbol = @symbols [ @current_symbol_index ] end end
Move to the next symbol as configured
Move to the next symbol as configured
### TODO: candidate for pulling out into method on Aggregator ### TODO: candidate for optimization