Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Tickers
- attr_accessor :ticker_names
- def initialize
- @ticker_url = "ticker_list.txt"
- @ticker_names = []
- end
- def load_tickers
- File.open(ticker_url,'r') do |f1|
- while line = f1.gets
- @ticker_names << line
- end
- end
- end
- end
- t = Tickers.new
- t.ticker_names.foreach do |tick|
- puts tick
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement