Method: Barker::GameShow#join

Defined in:
lib/barker/game_show.rb

#join(candidate) ⇒ Object



95
96
97
98
99
100
101
# File 'lib/barker/game_show.rb', line 95

def join(candidate)
  raise AlreadyStartedError if started?
  candidate.join
  @candidates ||= []
  @candidates << candidate
  candidate
end