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

# Complies with Proc API by mapping a Puppet::
    
  def arity
    parameters.reduce(0) do |memo, param|
      count = memo + 1
      break -count unless param[0] == :req

      count
    end
  end