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: change.rb
    path of file: ./repos/jets/lib/jets/cfn/resource/api_gateway/rest_api/routes
    
    the code of the file until where you have to start completion: # Detects route changes
class Jets::Cfn::Resource::ApiGateway::RestApi::Routes
  class Chang
    
    def changed?
      return false unless parent_stack_exists?
      return true if reset?

      # Note: Variable.changed? will likely always true in one_apigw_method_for_all_routes mode
      # since parent variables are allowed to vary in Jets v5.
      if Jets.config.cfn.build.routes == "one_apigw_method_for_all_routes"
        MediaTypes.changed? || To.changed?
      else
        MediaTypes.changed? || To.changed? || Variable.changed? || Page.changed?
      end