Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arr = CSV.parse(ARGF) # the important part.
- input = ''
- while true
- puts "What is your choice: "
- input = STDIN.gets.to_i
- if input.zero?
- break
- end
- end
- ruby ./bin/kata items.csv
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement