X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/edff22dc7bd8517bff039e3346f2a85bf0aed754..d01ccdbbf0b98a7b6a3c67a51ff6752a80b890a3:/lib/rubyvote/election.rb diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb index 3d816a8..ec30ab9 100644 --- a/lib/rubyvote/election.rb +++ b/lib/rubyvote/election.rb @@ -75,7 +75,7 @@ class PluralityVote < ElectionVote protected def verify_vote(vote=nil) - vote.instance_of?( String ) + vote ? true : false end def tally_vote(candidate)