Class: Bio::GFFbrowser::GFF3
- Inherits:
-
Object
- Object
- Bio::GFFbrowser::GFF3
- Defined in:
- lib/bio/db/gff/gff3.rb
Instance Attribute Summary collapse
-
#assembler ⇒ Object
readonly
Returns the value of attribute assembler.
Instance Method Summary collapse
-
#initialize(filename, options = {}) ⇒ GFF3
constructor
Initialize a GFF parser.
Constructor Details
#initialize(filename, options = {}) ⇒ GFF3
Initialize a GFF parser
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 |
# File 'lib/bio/db/gff/gff3.rb', line 24 def initialize filename, = {} [:parser] = :line if [:parser] == nil cache_recs = [:cache_records] @assembler = if [:block] GffBlockParser.new(filename, ) else case cache_recs when :cache_none NoCache.new(filename, ) when :cache_lru LruCache.new(filename, ) else InMemory.new(filename, ) # default end end end |
Instance Attribute Details
#assembler ⇒ Object (readonly)
Returns the value of attribute assembler.
18 19 20 |
# File 'lib/bio/db/gff/gff3.rb', line 18 def assembler @assembler end |