Class: GENOME::Genome
- Inherits:
-
Hash
- Object
- Hash
- GENOME::Genome
- Defined in:
- lib/genome/genome.rb
Instance Attribute Summary collapse
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(name) ⇒ Genome
constructor
A new instance of Genome.
- #to_s ⇒ Object
Constructor Details
#initialize(name) ⇒ Genome
Returns a new instance of Genome.
5 6 7 |
# File 'lib/genome/genome.rb', line 5 def initialize(name) @name = name end |
Instance Attribute Details
#name ⇒ Object
Returns the value of attribute name.
3 4 5 |
# File 'lib/genome/genome.rb', line 3 def name @name end |
Instance Method Details
#to_s ⇒ Object
9 10 11 |
# File 'lib/genome/genome.rb', line 9 def to_s "<Genome: SNPs=#{length}, name=#{@name}>" end |