class Irc::Bot::Registry::DaybreakAccessor

Public Class Methods

new(filename) click to toggle source
# File lib/rbot/registry/daybreak.rb, line 18
def initialize(filename)
  super filename + '.db'
end

Public Instance Methods

flush() click to toggle source
# File lib/rbot/registry/daybreak.rb, line 27
def flush
  return unless @registry
  @registry.flush
end
optimize() click to toggle source
# File lib/rbot/registry/daybreak.rb, line 32
def optimize
  return unless @registry
  @registry.compact
end
registry() click to toggle source
# File lib/rbot/registry/daybreak.rb, line 22
def registry
  super
  @registry ||= Daybreak::DB.new(@filename)
end