# File lib/merb-core/dispatch/router.rb, line 55 def compiled_statement @@compiler_mutex.synchronize do @@compiled_statement = "def match(request)\n" @@compiled_statement << " params = request.params\n" @@compiled_statement << " cached_path = request.path\n cached_method = request.method.to_s\n " @@routes.each_with_index { |route, i| @@compiled_statement << route.compile(i == 0) } @@compiled_statement << " else\n [nil, {}]\n" @@compiled_statement << " end\n" @@compiled_statement << "end" end end