Class: GENOME::Genotype
- Inherits:
-
Object
- Object
- GENOME::Genotype
- Defined in:
- lib/genome/genotype.rb
Instance Attribute Summary collapse
-
#genotype ⇒ Object
Returns the value of attribute genotype.
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(genotype) ⇒ Genotype
constructor
A new instance of Genotype.
- #to_s ⇒ Object
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
#genotype ⇒ Object
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_s ⇒ Object
8 9 10 |
# File 'lib/genome/genotype.rb', line 8 def to_s genotype end |