summaryrefslogtreecommitdiff
path: root/lib/rbot/registry/mem.rb
blob: 85d52b15810987fa52a949707d36f7ff41db0bbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#-- vim:sw=2:et
#++
#
# :title: Memory registry implementation
#
# This is using a in-memory hash, does not persist, used for
# tests, etc.
#

module Irc
class Bot
class Registry

  class MemAccessor < AbstractAccessor

    def registry
      super
      @registry = {}
    end

    def dbexists?
      true  # the memory database always exists, this way it won't create any folders on the file system
    end

  end

end # Registry
end # Bot
end # Irc