Class: Bio::GFF::GFF3::Record::Gap::Code

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#codeObject

1-letter code (Symbol). One of :M, :I, :D, :F, or :R is expected.



1255
1256
1257
# File 'lib/bio/db/gff.rb', line 1255

def code
  @code
end

#lengthObject

length (Integer)



1255
1256
1257
# File 'lib/bio/db/gff.rb', line 1255

def length
  @length
end

Instance Method Details

#to_sObject



1265
1266
1267
# File 'lib/bio/db/gff.rb', line 1265

def to_s
  "#{code}#{length}"
end