Class: Rubygoal::Formation::CustomPosition
- Inherits:
-
FormationDSL
- Object
- FormationDSL
- Rubygoal::Formation::CustomPosition
- Defined in:
- lib/rubygoal/formation/formation_dsl.rb
Instance Method Summary collapse
- #apply ⇒ Object
-
#initialize(formation) ⇒ CustomPosition
constructor
A new instance of CustomPosition.
Methods inherited from FormationDSL
Constructor Details
#initialize(formation) ⇒ CustomPosition
Returns a new instance of CustomPosition.
45 46 47 |
# File 'lib/rubygoal/formation/formation_dsl.rb', line 45 def initialize(formation) @formation = formation end |
Instance Method Details
#apply ⇒ Object
49 50 51 |
# File 'lib/rubygoal/formation/formation_dsl.rb', line 49 def apply formation.players_position[player_name] = player_position end |