Class: GeneticObject

Inherits:
Object
  • Object
show all
Defined in:
lib/gemetics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeGeneticObject

Returns a new instance of GeneticObject.



105
106
# File 'lib/gemetics.rb', line 105

def initialize()
end

Instance Attribute Details

#fitnessObject

Returns the value of attribute fitness.



103
104
105
# File 'lib/gemetics.rb', line 103

def fitness
  @fitness
end

Instance Method Details

#mate(other) ⇒ Object



112
113
114
# File 'lib/gemetics.rb', line 112

def mate(other)
  raise 'Meothd Not Implemented'
end

#mutateObject



108
109
110
# File 'lib/gemetics.rb', line 108

def mutate()
  raise 'Method Not Implemented'
end