class Allele
Specific value for a specific gene
Attributes
value[RW]
Public Class Methods
new(gene, value)
click to toggle source
# File lib/allele.rb, line 4 def initialize(gene, value) @gene = gene @value = value end
Public Instance Methods
copy()
click to toggle source
# File lib/allele.rb, line 13 def copy # /!\ if @value is a ref, its underlying object won't be copied Allele.new(@gene, @value) end
mutate()
click to toggle source
# File lib/allele.rb, line 9 def mutate @value = @gene.mutate(@value) end