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: response.rb
    path of file: ./repos/stackneveroverflow/vendor/bundle/ruby/2.3.0/gems/web-console-3.5.1/lib/web_console
    
    the code of the file until where you have to start completion: module WebConsole
  # A
    
    def write(content)
      raw_body = Array(body).first.to_s

      if position = raw_body.rindex('</body>')
        raw_body.insert(position, content)
      else
        raw_body << content
      end