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: menu.rb
    path of file: ./repos/tomo/lib/tomo/console
    
    the code of the file until where you have to start completion: require "forwardable"
require "io/console"

module Tomo
  class Console
    cla
    
      def find_match_index(string)
        exact = options.find_index do |opt|
          opt.match?(/^#{Regexp.quote(string)}/i)
        end
        substring = options.find_index do |opt|
          opt.match?(/#{Regexp.quote(string)}/i)
        end

        exact || substring || position
      end