Module: Olympic::Bracket
- Defined in:
- lib/olympic/bracket.rb,
lib/olympic/bracket/base.rb,
lib/olympic/bracket/single_elimination.rb,
lib/olympic/bracket/single_elimination/information.rb
Defined Under Namespace
Classes: Base, SingleElimination
Constant Summary collapse
- BRACKETS =
{ single_elimination: SingleElimination, double_elimination: DoubleElimination, round_robin: RoundRobin }
Class Method Summary collapse
Class Method Details
.for(name, tournament, teams) ⇒ Object
15 16 17 |
# File 'lib/olympic/bracket.rb', line 15 def self.for(name, tournament, teams) BRACKETS.fetch(name).new(tournament, teams) end |