X-Git-Url: https://projects.mako.cc/source/selectricity-live/blobdiff_plain/560828ebdd364de4ca09d61764f19215a9e29e59..fc0a6a8d7ea15bcdb27ebdd58721401c7045c6e0:/lib/rubyvote/election.rb diff --git a/lib/rubyvote/election.rb b/lib/rubyvote/election.rb old mode 100644 new mode 100755 index 7fd8396..fc61840 --- 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)