Exception: Algorithm::Genetic::Terminated
- Inherits:
-
StandardError
- Object
- StandardError
- Algorithm::Genetic::Terminated
- Defined in:
- lib/algorithm/genetic/population.rb
Overview
terminated exception
Instance Attribute Summary collapse
-
#gene ⇒ Object
readonly
Returns the value of attribute gene.
Instance Method Summary collapse
-
#initialize(gene) ⇒ Terminated
constructor
A new instance of Terminated.
Constructor Details
#initialize(gene) ⇒ Terminated
Returns a new instance of Terminated.
9 10 11 12 |
# File 'lib/algorithm/genetic/population.rb', line 9 def initialize(gene) @gene = gene super('terminated.') end |
Instance Attribute Details
#gene ⇒ Object (readonly)
Returns the value of attribute gene.
7 8 9 |
# File 'lib/algorithm/genetic/population.rb', line 7 def gene @gene end |