diff options
author | Matthias Hecker <mail@apoc.cc> | 2020-04-08 22:16:43 +0200 |
---|---|---|
committer | Matthias Hecker <mail@apoc.cc> | 2020-04-08 22:16:43 +0200 |
commit | f8e85aa40bfc1118acd1e29de75f3befc9dc6266 (patch) | |
tree | db132ea4f208a7aba1844e707b0e6ecffc64f23c /lib | |
parent | 08cd983415786c83f8661195f2200a35c272b6b1 (diff) |
fix: in-memory registry persist correctly
Diffstat (limited to 'lib')
-rw-r--r-- | lib/rbot/registry/mem.rb | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/rbot/registry/mem.rb b/lib/rbot/registry/mem.rb index 85d52b15..0664ad39 100644 --- a/lib/rbot/registry/mem.rb +++ b/lib/rbot/registry/mem.rb @@ -13,9 +13,20 @@ class Registry class MemAccessor < AbstractAccessor + def initialize(filename) + super(filename) + @data = {} + end + def registry super - @registry = {} + @registry = @data + end + + def close + end + + def flush end def dbexists? |