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: install_generator.rb
    path of file: ./repos/cucumber-rails/lib/generators/cucumber
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'rbconfig'

module Cucumber
  class InstallGenerator < ::Rails::Generators::Bas
    
    def configure_environment
      environment(<<~CONFIG, env: %w[development test]) if ::Rails::VERSION::MAJOR >= 6
        # Configure 'rails notes' to inspect Cucumber files
        config.annotations.register_directories('features')
        config.annotations.register_extensions('feature') { |tag| /#\\s*(\#{tag}):?\\s*(.*)$/ }

      CONFIG
    end