aggregator/stock.rb
## Get the quote for the current symbol,
#   move to the next one, and give the output string.
#   This should only display stocks that have a value returned.
Get the quote for the current symbol,
move to the next one, and give the output string.
This should only display stocks that have a value returned.
Get the quote for the current symbol move to the next one and give the output string . This should only display stocks that have a value returned .
def read
    output_str = ''
    loop do
      output_str = @cache[@current_symbol] || quote
      next_symbol
      break unless output_str.include?('$-')
    end
    output_str
  end
def read output_str = '' loop do output_str = @cache [ @current_symbol ] || quote next_symbol break unless output_str . include? ( '$-' ) end output_str end
Get the quote for the current symbol,
move to the next one, and give the output string.
Get the quote for the current symbol move to the next one and give the output string .