Method: PEROBS::FlatFile#initialize

Defined in:
lib/perobs/FlatFile.rb

#initialize(dir) ⇒ FlatFile

Create a new FlatFile object for a database in the given path.

Parameters:

  • dir (String)

    Directory path for the data base file



44
45
46
47
48
49
# File 'lib/perobs/FlatFile.rb', line 44

def initialize(dir)
  @db_dir = dir
  @f = nil
  @index = IndexTree.new(dir)
  @space_list = FreeSpaceManager.new(dir)
end