Class: TechniqueUsine

Inherits:
Object
  • Object
show all
Defined in:
app/utils/TechniqueUsine.rb

Overview

Classe pour l'usine à technique

Instance Method Summary collapse

Instance Method Details

#creer(tech) ⇒ Object

Une instance de la classe donnée en paramètre

Parameters:

  • tech

    Le nom de la technique

Returns:

  • L'instance de la classe tech



20
21
22
# File 'app/utils/TechniqueUsine.rb', line 20

def creer(tech)
	return Object.const_get(tech).new()
end