def start(paths, params = {})
      @registry = []

      paths.each do |path|
        if path[-1] == '/'
          path.chop!
        end

        Dir["#{path}/*.rb"].each do |f|

          require File.expand_path(f)

          begin
            instance = Object.const_get(File.basename(f, '.rb')).new

            # `before` event callback
            if instance.respond_to?(:before)
              instance.send(:before)
            end

            # `setup` method
            if instance.respond_to?(:setup)
              instance.send(:setup, params)
            end

            @registry.push(instance)
            
          rescue Exception => e
            puts "#{f} Plugg Initialization Exception: #{e}"
          end
    		end
      end
    end
def start(paths, params = {})
      @registry = []

      paths.each do |path|
        if path[-1] == '/'
          path.chop!
        end

        Dir["#{path}/*.rb"].each do |f|

          require File.expand_path(f)

          begin
            instance = Object.const_get(File.basename(f, '.rb')).new

            # `before` event callback
            if instance.respond_to?(:before)
              instance.send(:before)
            end

            # `setup` method
            if instance.respond_to?(:setup)
              instance.send(:setup, params)
            end

            @registry.push(instance)
            
          rescue Exception => e
            puts "#{f} Plugg Initialization Exception: #{e}"
          end
    		end
      end
    end
Assign a path where plugins should be loaded from

 @param mixed path
 @param hash params
 @return void