Module: Bio::FlatFileIndex::BDBdefault

Defined in:
lib/bio/io/flatfile/bdb.rb

Class Method Summary collapse

Class Method Details

.flag_appendObject



37
38
39
# File 'lib/bio/io/flatfile/bdb.rb', line 37

def flag_append
  'r+'
end

.flag_readObject



27
28
29
# File 'lib/bio/io/flatfile/bdb.rb', line 27

def flag_read
  BDB::RDONLY
end

.flag_writeObject



32
33
34
# File 'lib/bio/io/flatfile/bdb.rb', line 32

def flag_write
  (BDB::CREATE | BDB::TRUNCATE)
end

.permissionObject



22
23
24
# File 'lib/bio/io/flatfile/bdb.rb', line 22

def permission
  (0666 & (0777 ^ File.umask))
end