votes = @election.votes
candidates = @election.candidates
unless votes.length>0 and candidates.length>0
- @winners=[nil]
+ @winners=[]
return @winners
end
victors = Hash.new
def initialize(voteobj=nil)
super(voteobj)
@winners = self.cpssd()
+ @winners.delete nil
end
protected