class MatchPlay::StartNext
Class to help with starting games, tiebreaks, sets, and match tiebreaks
Public Class Methods
new(match)
click to toggle source
-
Args
-
match
-> Match
-
# File app/models/concerns/match_play.rb, line 434 def initialize(match) @match = match end
Public Instance Methods
game()
click to toggle source
Start the next game
# File app/models/concerns/match_play.rb, line 459 def game start_game_kind :game end
game?()
click to toggle source
Indicate if a game can be started
# File app/models/concerns/match_play.rb, line 439 def game? start_game_kind? :game end
match_tiebreak?()
click to toggle source
Indicate if the match tiebreak set can be started
# File app/models/concerns/match_play.rb, line 454 def match_tiebreak? start_set_kind? :tiebreak end
set?()
click to toggle source
Indicate if a set can be started
# File app/models/concerns/match_play.rb, line 449 def set? start_set_kind? :set end
tiebreak()
click to toggle source
Start the next tiebreak game
# File app/models/concerns/match_play.rb, line 464 def tiebreak start_game_kind :tiebreak end
tiebreak?()
click to toggle source
Indicate if a tiebreak game can be started
# File app/models/concerns/match_play.rb, line 444 def tiebreak? start_game_kind? :tiebreak end