simplify access to full results - now available as voteobject.results,
[rubyvote] / lib / rubyvote / election.rb
index 7fd8396..3d816a8 100644 (file)
@@ -61,6 +61,11 @@ class ElectionVote
   def tally_vote
     self.verify_vote(vote)
   end
+
+  def filter_out(winner)
+    @candidates.delete_if {|x| winner.winners.include?(x)}
+  end
+
 end
 
 class PluralityVote < ElectionVote

Benjamin Mako Hill || Want to submit a patch?