Class: Bio::GFF::GFF3::Record::Gap::Code
- Defined in:
- lib/bio/db/gff.rb,
lib/bio/db/gff.rb
Overview
Code is a class to store length of single-letter code.
Instance Attribute Summary collapse
-
#code ⇒ Object
1-letter code (Symbol).
-
#length ⇒ Object
length (Integer).
Instance Method Summary collapse
Instance Attribute Details
#code ⇒ Object
1-letter code (Symbol). One of :M, :I, :D, :F, or :R is expected.
1256 1257 1258 |
# File 'lib/bio/db/gff.rb', line 1256 def code @code end |
#length ⇒ Object
length (Integer)
1256 1257 1258 |
# File 'lib/bio/db/gff.rb', line 1256 def length @length end |
Instance Method Details
#to_s ⇒ Object
1266 1267 1268 |
# File 'lib/bio/db/gff.rb', line 1266 def to_s "#{code}#{length}" end |