Class: Rubygoal::Formation::CustomPosition

Inherits:
FormationDSL show all
Defined in:
lib/rubygoal/formation/formation_dsl.rb

Instance Method Summary collapse

Methods inherited from FormationDSL

apply

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

#applyObject



49
50
51
# File 'lib/rubygoal/formation/formation_dsl.rb', line 49

def apply
  formation.players_position[player_name] = player_position
end