alias Yeager::Result

Overview

Result Hash will include the matched :path and the parameters.

For given example;

require "yeager"
router = Yeager::Router.new
router.add "/foo/:hello"
router.run "/foo/world"

will return a Result instance with following content;

{
  "hello" => "world",
  :path   => "/foo/:hello",
}

Alias Definition

Hash(String | Symbol, String)

Defined in:

yeager.cr