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: form.rb
    path of file: ./repos/mechanize/lib/mechanize
    
    the code of the file until where you have to start completion: # frozen_string_literal: true
require 'mechanize/element_matcher'

# This class encapsulates a form parsed out of an HTML page.  Each type of
# input field ava
    
  def param_to_multipart(name, value, buf = ::String.new)
    buf <<
      "Content-Disposition: form-data; name=\"".freeze <<
      mime_value_quote(name) <<
      "\"\r\n\r\n".freeze <<
      value.b <<
      CRLF
  end