@registry = BotRegistryAccessor.new(@bot, self.class.to_s.gsub(/^.*::/, ""))
end
+ def flush_registry
+ @registry.flush
+ end
+
def map(*args)
@handler.map(*args)
# register this map
# call the save method for each active plugin
def save
+ delegate 'flush_registry'
delegate 'save'
end
# debug "initializing registry accessor with name #{@name}"
end
+ def flush
+ @registry.flush
+ end
+
# convert value to string form for storing in the registry
# defaults to Marshal.dump(val) but you can override this in your module's
# registry object to use any method you like.