Class: GENOME::Genotype

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(genotype) ⇒ Genotype

Returns a new instance of Genotype.



4
5
6
# File 'lib/genome/genotype.rb', line 4

def initialize(genotype)
  @genotype = genotype
end

Instance Attribute Details

#genotypeObject

Returns the value of attribute genotype.



3
4
5
# File 'lib/genome/genotype.rb', line 3

def genotype
  @genotype
end

Instance Method Details

#==(other) ⇒ Object



12
13
14
# File 'lib/genome/genotype.rb', line 12

def ==(other)
  @genotype == other.genotype
end

#to_sObject



8
9
10
# File 'lib/genome/genotype.rb', line 8

def to_s
  genotype
end