Method: Bio::FlatFileIndex::FileID.new_from_string

Defined in:
lib/bio/io/flatfile/index.rb

.new_from_string(str) ⇒ Object



489
490
491
492
493
# File 'lib/bio/io/flatfile/index.rb', line 489

def self.new_from_string(str)
  a = str.split("\t", 2)
  a[1] = a[1].to_i if a[1]
  self.new(a[0], a[1])
end