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: value_switch.rb
    path of file: ./repos/tomo/lib/tomo/cli/rules
    
    the code of the file until where you have to start completion: class Tomo::CLI::Rules
  class ValueSwitch < Switch
    include Tomo::Colors

    d
    
    def candidates(switch=nil, state:, literal: false)
      return [] if literal

      vals = values(state)
      return vals.reject { |val| val.start_with?("-") } if switch

      switches.each_with_object([]) do |each_switch, result|
        result << each_switch
        vals.each do |value|
          result << "#{each_switch}=#{value}" if each_switch.start_with?("--")
        end
      end
    end