class

Marten::Routing::Path::Spec::Static

Inherits Marten::Routing::Path::Spec::Base / Reference / Object

Represents a static path specification.

A static path specification is used for non-translated paths. Such specifications are derived from a set of parameters, a path for interpolation, and a path regex.

Constructors

new(regex : Regex, path_for_interpolation : String, parameters : Hash(String, Parameter::Base))
Source

Instance methods

parameters
Source
path_for_interpolation
Source
regex
Source
resolve(path : String) : Path::Match | Nil

Resolves the path against the path specification.

Source
reverser(name : String) : Reverser

Returns a reverser for the path specification.

Source