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: route.rb
    path of file: ./repos/chef/lib/chef/provider
    
    the code of the file until where you have to start completion: #
# Author:: Bryan McLellan (btm@loftninjas.org), Jesse Nelson (spheromak@gmail.com)
# Copyright:: Copyright 2009-2016, Bryan McLellan
# Copyright:: Copyright (c) Chef Software Inc.
    
      def config_file_contents(action, options = {})
        content = ""
        case action
        when :add
          content << "# #{options[:comment]}\n" if options[:comment]
          content << (options[:target]).to_s
          content << "/#{MASK[options[:netmask].to_s]}" if options[:netmask]
          content << " via #{options[:gateway]}" if options[:gateway]
          content << " dev #{options[:device]}" if options[:device]
          content << " metric #{options[:metric]}" if options[:metric]
          content << "\n"
        end