repo.or.cz
/
metropolis.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
history
|
raw
|
HEAD
Rakefile: kill raa_update task
[metropolis.git]
/
lib
/
metropolis
/
tdb
/
single.rb
blob
840b57acce137f3017f0c92c83d6088e598f5f13
1
# -*- encoding: binary -*-
2
module Metropolis::TDB::Single
3
def self.extended(obj)
4
obj.instance_eval do
5
@db = ::TDB.new(@uri.path, @tdb_opts)
6
end
7
end
8
9
def db(key, &block)
10
yield @db
11
end
12
13
def close!
14
@db.close
15
end
16
end