Module: Playoffs::Tournament::Roundable

Extended by:
T::Helpers, T::Sig
Included in:
Playoffs::Tournament
Defined in:
lib/playoffs/tournament/roundable.rb

Overview

Understands how to take a top-level series

Instance Method Summary collapse

Instance Method Details

#current_roundObject



17
18
19
# File 'lib/playoffs/tournament/roundable.rb', line 17

def current_round
  rounds.find(&:not_over?)
end


22
23
24
# File 'lib/playoffs/tournament/roundable.rb', line 22

def print_rounds
  rounds.map { |round, _number| [round.to_s, ''] }.join("\n")
end

#roundsObject



14
# File 'lib/playoffs/tournament/roundable.rb', line 14

def rounds; end