X-Git-Url: https://projects.mako.cc/source/rubyvote/blobdiff_plain/edff22dc7bd8517bff039e3346f2a85bf0aed754..8ea54765a6dbdc22b1f99e5493eafb432210a7d8:/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)