routes = {'bookmark' => ['http://example.com/bookmarks/{bookmark_id}', 'http://example.com/bookmarks/{bookmark_id}.{format}'], 'static_path' => ['http://example.com/static_path'], 'search' => ['http://example.com/search']} require 'rupta/factory' router = Rupta::Factory.new.create # Rupta#detect returns the name of a detected route, # a matched URI template and extracted URI parameters p router.de