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

module RBS
  module Collection
    class Installer
      attr_reader :lockfile
      attr_reader :stdout

      def initialize(lockfile_path:, stdout: $stdout)
        @l
    
      def install_from_lockfile
        install_to = lockfile.fullpath
        install_to.mkpath
        selected = lockfile.gems.select do |name, gem|
          gem[:source].has?(name, gem[:version])
        end
        selected.each_value do |gem|
          gem[:source].install(
            dest: install_to,
            name: gem[:name],
            version: gem[:version],
            stdout: stdout
          )
        end
        CLI::ColoredIO.new(stdout: stdout).puts_green("It's done! #{selected.size} gems' RBSs now installed.")
      end
    end