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

Returns the value of attribute code

Returns:

  • (Object)

    the current value of code



1226
1227
1228
# File 'lib/bio/db/gff.rb', line 1226

def code
  @code
end

#lengthObject

Returns the value of attribute length

Returns:

  • (Object)

    the current value of length



1226
1227
1228
# File 'lib/bio/db/gff.rb', line 1226

def length
  @length
end

Instance Method Details

#to_sObject



1236
1237
1238
# File 'lib/bio/db/gff.rb', line 1236

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