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: against.rb
    path of file: ./repos/facets/lib/standard/facets
    
    the code of the file until where you have to start completion: require 'facets/functor'

class Object

  # Objectified message or block application. Only a message
  # or a block can be given, not both.
  #
  # msg - method and arguments [Array]
  # blk - procedure block [Proc]
  
    
  def against(*msg, &blk)
    raise ArgumentError, "too many arguments" if blk && !msg.empty?

	  this = self

    blk = ::Proc.new{ |x,*a| x.__send__(*msg, *a) } unless blk

    #if blk
		  Functor.new do |m, *a, &b|
			  if b
			    b2 = ::Proc.new{ |*x| blk.call(*b.call(*x), *a) }
        else
          b2 = blk
			  end
			  this.__send__(m, &b2)
		  end