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: kernel.rb
    path of file: ./repos/artichoke/artichoke-backend/src/extn/core/kernel
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Kernel
  def extend(*args)
    args.reverse!
    args.each do |m|
      m.extend_object(self)
      m.extended(self)
    end
    self
  end

  # Setup a catch block and wait for an object to be thrown, the
  # catch end without catchin
    
  def warn(*msg)
    msg.each do |warning|
      warning = warning.to_s
      warning << "\n" unless warning[-1] == "\n"
      # TODO: This should call `Warning.warn` but due to method visibility
      # limitations of the mruby VM, we cannot shadow the warn method there.
      out = $stderr || $stdout || self
      out.print(warning)
    end
    nil
  end