Class: Evolvable::RigidCountGene

Inherits:
Object
  • Object
show all
Includes:
Gene
Defined in:
lib/evolvable/rigid_count_gene.rb

Instance Attribute Summary collapse

Attributes included from Gene

#evolvable

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Gene

included, #key

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

#countObject (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