class

Marten::Routing::Path::Spec::Translated

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

Represents a translated path specification.

A translated path specification is a path specification whose path can be translated into multiple locales. As such, it contains a mapping of locales to static path specifications that are determined by translating a translated path using the project's locales.

Constructors

new(translated_path : TranslatedPath, regex_suffix : String | Nil = nil)
Source

Instance methods

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