Class: Bio::GFFbrowser::GFFdb

Inherits:
Object
  • Object
show all
Includes:
Digest
Defined in:
lib/bio/db/gff/gffdb.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(filename, options = {}) ⇒ GFFdb

Initialize a GFF parser



26
27
28
29
30
31
32
33
34
35
# File 'lib/bio/db/gff/gffdb.rb', line 26

def initialize filename, options = {}
  cache_recs    = options[:cache_records]
  @assembler = 
    case cache_recs
      when :cache_none 
        NoCache.new(filename, options)
      else
        InMemory.new(filename, options)  # default 
    end
end

Instance Attribute Details

#assemblerObject (readonly)

Returns the value of attribute assembler.



21
22
23
# File 'lib/bio/db/gff/gffdb.rb', line 21

def assembler
  @assembler
end