class Bio::FlatFileIndex::Template::NameSpace

templates of namespace

Internal use only.

Attributes

dbname[R]
file[R]
name[R]

Public Class Methods

new(dbname, name) click to toggle 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

close() click to toggle source
    # File lib/bio/io/flatfile/index.rb
470 def close
471   @file.close
472 end
filename() click to toggle 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
include?(key) click to toggle 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
mapping(filename) click to toggle 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