Class: EvoSynth::Evolvers::RunnableEvolver::Goal
- Inherits:
-
Object
- Object
- EvoSynth::Evolvers::RunnableEvolver::Goal
- Defined in:
- lib/evosynth/evolvers/runnable_evolver.rb
Instance Method Summary collapse
- #fitness ⇒ Object
-
#initialize(goal) ⇒ Goal
constructor
A new instance of Goal.
Constructor Details
#initialize(goal) ⇒ Goal
Returns a new instance of Goal.
77 78 79 |
# File 'lib/evosynth/evolvers/runnable_evolver.rb', line 77 def initialize(goal) @goal = goal end |
Instance Method Details
#fitness ⇒ Object
81 82 83 |
# File 'lib/evosynth/evolvers/runnable_evolver.rb', line 81 def fitness @goal end |