You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: lookup.rb
    path of file: ./repos/pakyow/core/lib/pakyow/plugin
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require "forwardable"

module Pakyow
  class Plugin
    class Lookup
      include Enumerable

      extend Forwardable
      def_delegators :@plugs, :each, :<<

      def initialize(plugs)
        @plugs = plugs
      end

      de
    
      def finalize
        @plugs.map { |plug|
          plug.class.plugin_name
        }.uniq.each do |plugin_name|
          define_singleton_method plugin_name do |plugin_instance_name = :default|
            plugin_instance_name = plugin_instance_name.to_sym

            @plugs.find { |plug|
              plug.class.plugin_name == plugin_name && plug.object_name.namespace.parts.last == plugin_instance_name
            }
          end
        end
      end