diff options
author | Matthias H <apoc@sixserv.org> | 2014-03-06 14:20:27 +0100 |
---|---|---|
committer | Matthias H <apoc@sixserv.org> | 2014-03-06 14:20:27 +0100 |
commit | 6211ffb416592782bc8103ab29d63189623b187c (patch) | |
tree | 54147dbf97403c8fd2bd9c8df3022e0d200f4600 /lib/rbot/registry/dbm.rb | |
parent | f22c53c7ecbbdcd769ef92239a06e04ef3fff805 (diff) |
[registry] small refactoring and added flush test
Diffstat (limited to 'lib/rbot/registry/dbm.rb')
-rw-r--r-- | lib/rbot/registry/dbm.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/rbot/registry/dbm.rb b/lib/rbot/registry/dbm.rb index a13cb8ce..9c0304a9 100644 --- a/lib/rbot/registry/dbm.rb +++ b/lib/rbot/registry/dbm.rb @@ -23,21 +23,10 @@ class Registry @registry ||= DBM.open(@filename, 0666, DBM::WRCREAT) end - def flush - return if !@registry - # ruby dbm has no flush, so we close/reopen :( - close - registry - end - def dbexists? not Dir.glob(@filename + '.*').empty? end - def optimize - # unsupported! - end - end end # Registry |