Class: Team
- Inherits:
-
TypesafeEnum::Base
- Object
- TypesafeEnum::Base
- Team
- Defined in:
- lib/software_challenge_client/team.rb
Overview
Erster oder zweiter Spieler:
ONE
TWO
Zugriff z.B. mit Team::ONE
Instance Method Summary collapse
-
#other_team(t) ⇒ Team
Das Team, was nicht t ist.
Instance Method Details
#other_team(t) ⇒ Team
Returns Das Team, was nicht t ist.
16 17 18 19 20 21 22 |
# File 'lib/software_challenge_client/team.rb', line 16 def other_team(t) if t == :ONE :TWO else :ONE end end |