Module: Bio::GFFbrowser::Digest::NoCacheHelpers::SeekRec

Defined in:
lib/bio/db/gff/gffnocache.rb

Overview

Module to fetch a line from GFF3 file and returns a parsed record

Class Method Summary collapse

Class Method Details

.fetch(fh, fpos) ⇒ Object

Fetch a record using fh and file seek position



22
23
24
25
26
# File 'lib/bio/db/gff/gffnocache.rb', line 22

def SeekRec::fetch(fh,fpos)
  return nil if fh==nil or fpos==nil
  fh.seek(fpos)
  GFF::GFF3::FileRecord.new(fpos, fh.gets)
end