class Bio::FlatFileIndex::Template::NameSpace
templates of namespace
Internal use only.
Attributes
Public Class Methods
Source
# File lib/bio/io/flatfile/index.rb 457 def initialize(dbname, name) 458 @dbname = dbname 459 @name = name.dup 460 @name.freeze 461 @file = mapping(filename) 462 end
Public Instance Methods
Source
# File lib/bio/io/flatfile/index.rb 446 def filename 447 # should be redifined in child class 448 raise NotImplementedError, "should be redefined in child class" 449 end
Source
# File lib/bio/io/flatfile/index.rb 474 def include?(key) 475 r = search(key) 476 unless r.empty? then 477 key 478 else 479 nil 480 end 481 end
Source
# File lib/bio/io/flatfile/index.rb 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
Source
# File lib/bio/io/flatfile/index.rb 465 def search(key) 466 @file.open 467 @file.search(key) 468 end