Class | Bio::FlatFileIndex::Template::NameSpace |
In: |
lib/bio/io/flatfile/index.rb
|
Parent: | Object |
dbname | [R] | |
file | [R] | |
name | [R] |
# File lib/bio/io/flatfile/index.rb, line 457 457: def initialize(dbname, name) 458: @dbname = dbname 459: @name = name.dup 460: @name.freeze 461: @file = mapping(filename) 462: end
# File lib/bio/io/flatfile/index.rb, line 446 446: def filename 447: # should be redifined in child class 448: raise NotImplementedError, "should be redefined in child class" 449: end
# File lib/bio/io/flatfile/index.rb, line 474 474: def include?(key) 475: r = search(key) 476: unless r.empty? then 477: key 478: else 479: nil 480: end 481: end
# File lib/bio/io/flatfile/index.rb, line 451 451: def mapping(filename) 452: # should be redifined in child class 453: raise NotImplementedError, "should be redefined in child class" 454: #Flat_1::FlatMappingFile.new(filename) 455: end