Class: Equalshares::TieBreaker::MaxVotes
- Defined in:
- lib/equalshares/tie_breaker.rb
Instance Method Summary collapse
Methods inherited from Extreme
Instance Method Details
#extreme ⇒ Object
43 |
# File 'lib/equalshares/tie_breaker.rb', line 43 def extreme = :max |
#key(project_id, ctx) ⇒ Object
42 |
# File 'lib/equalshares/tie_breaker.rb', line 42 def key(project_id, ctx) = ctx.approvers[project_id].length |
#sort_key(project_id, ctx) ⇒ Object
44 |
# File 'lib/equalshares/tie_breaker.rb', line 44 def sort_key(project_id, ctx) = -ctx.approvers[project_id].length |