Class: EvoSynth::Evolvers::RunnableEvolver::Goal

Inherits:
Object
  • Object
show all
Defined in:
lib/evosynth/evolvers/runnable_evolver.rb

Instance Method Summary collapse

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

#fitnessObject



81
82
83
# File 'lib/evosynth/evolvers/runnable_evolver.rb', line 81

def fitness
	@goal
end