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: rails2_route_processor.rb
    path of file: ./repos/brakeman/lib/brakeman/processors/lib
    
    the code of the file until where you have to start completion: require 'brakeman/proc
    
  def process_map exp
    args = exp.args

    case exp.method
    when :resource
      process_resource args
    when :resources
      process_resources args
    when :connect, :root
      process_connect args
    else
      process_named_route args
    end