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: routes.rb
    path of file: ./repos/spektr/lib/spektr/targets
    
    the code of the file until where you have to start completion: module Spektr
  module Targets
    class Routes < Base
      attr_accessor :routes

      def initialize(path, content)
        super
      end

      def find_actions
        @actions = fin
    
        def initialize(ast, controller)
          super(ast)
          @template = File.join(controller.name.delete_suffix("Controller").underscore, name.to_s)
          @body.each do |exp|
            if exp.send?
              if exp.name == :render
                if exp.arguments.first.type == :sym
                  @template = File.join(controller.name.delete_suffix("Controller").underscore, exp.arguments.first.name.to_s)
                elsif
                  if exp.arguments.first.type == :str
                    @template = exp.arguments.first.name
                  end
                end