def lookup(selector)
      unless routes.nil?
		routes.each do |pattern, keys, block|

          if match = pattern.match(selector)
            match = match.to_a
            url = match.shift

            params = to_params_hash(keys, match)

            #
            # @todo think about this
            #
            @params = params

            return params, block
          end
        end
      end

      unless @default_route.nil?
        return {}, @default_route
      end

      raise Gopher::NotFoundError
    end
def lookup(selector)
      unless routes.nil?
		routes.each do |pattern, keys, block|

          if match = pattern.match(selector)
            match = match.to_a
            url = match.shift

            params = to_params_hash(keys, match)

            #
            # @todo think about this
            #
            @params = params

            return params, block
          end
        end
      end

      unless @default_route.nil?
        return {}, @default_route
      end

      raise Gopher::NotFoundError
    end
lookup an incoming path

 @param [String] selector the selector path of the incoming request