X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/75091532075247ae9c47164ea883f4fe803eddf4..04f827dd4647f3a7d6e5bd8f5e9083c730a8dccc:/lib/rubyvote/election.rb diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb index 7fd8396..fc61840 100644 --- a/lib/rubyvote/election.rb +++ b/lib/rubyvote/election.rb @@ -70,7 +70,7 @@ class PluralityVote < ElectionVote protected def verify_vote(vote=nil) - vote.instance_of?( String ) + vote ? true : false end def tally_vote(candidate)