This base class for plugins really does nothing more than wire up the new class into the right category. It is not thread-safe yet but will be soon.
See Mongrel::Plugin for an explanation.
# File lib/gem_plugin.rb, line 260 def Base.category=(category) @@category = category end
See Mongrel::Plugin for an explanation.
# File lib/gem_plugin.rb, line 253 def Base.inherited(klass) name = "/" + klass.to_s.downcase Manager.instance.register(@@category, name, klass) @@category = nil end
# File lib/gem_plugin.rb, line 264 def initialize(options = {}) @options = options end