class Puma::PluginLoader
def create(name)
def create(name) if cls = Plugins.find(name) plugin = cls.new @instances << plugin return plugin end raise UnknownPlugin, "File failed to register properly named plugin" end
def fire_starts(launcher)
def fire_starts(launcher) @instances.each do |i| if i.respond_to? :start i.start(launcher) end end end
def initialize
def initialize @instances = [] end