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: registry.rb
    path of file: ./repos/clowne/lib/clowne/adapters
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Clowne
  module Adapters
    class Registry # :nodoc: all
      module Container
        def sel
    
          def register_resolver(type, resolver, after: nil, before: nil, prepend: nil)
            registry.mapping[type] = resolver

            if prepend
              registry.unshift type
            elsif after
              registry.insert_after after, type
            elsif before
              registry.insert_before before, type
            else
              registry.append type
            end