Method: Bio::Sequence::Common#concat

Defined in:
lib/bio/sequence/common.rb

#concat(*arg) ⇒ Object

Add new data to the end of the current sequence. The original sequence is modified.

s = Bio::Sequence::NA.new('atgc')
s << 'atgc'
puts s                                  #=> "atgcatgc"
s << s
puts s                                  #=> "atgcatgcatgcatgc"

Returns

current Bio::Sequence::NA/AA object (modified)



95
96
97
# File 'lib/bio/sequence/common.rb', line 95

def concat(*arg)
  super(self.class.new(*arg))
end