Class: Evolvable::RigidCountGene
- Inherits:
-
Object
- Object
- Evolvable::RigidCountGene
- Includes:
- Gene
- Defined in:
- lib/evolvable/rigid_count_gene.rb
Instance Attribute Summary collapse
-
#count ⇒ Object
readonly
Returns the value of attribute count.
Attributes included from Gene
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(count) ⇒ RigidCountGene
constructor
A new instance of RigidCountGene.
Methods included from Gene
Constructor Details
#initialize(count) ⇒ RigidCountGene
Returns a new instance of RigidCountGene.
11 12 13 |
# File 'lib/evolvable/rigid_count_gene.rb', line 11 def initialize(count) @count = count end |
Instance Attribute Details
#count ⇒ Object (readonly)
Returns the value of attribute count.
15 16 17 |
# File 'lib/evolvable/rigid_count_gene.rb', line 15 def count @count end |
Class Method Details
.combine(gene_a, _gene_b) ⇒ Object
7 8 9 |
# File 'lib/evolvable/rigid_count_gene.rb', line 7 def self.combine(gene_a, _gene_b) gene_a end |