- def tally_vote(vote)
- vote.each do |candidate, score|
- if @votes.has_key?(candidate)
- @votes[candidate] += score
- else
- @votes[candidate] = score
- @candidates << candidate
+ def tally_vote(vote)
+ vote.each do |candidate, score|
+ if @votes.has_key?(candidate)
+ @votes[candidate] += score
+ else
+ @votes[candidate] = score
+ @candidates << candidate
+ end