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

Overview

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.

Defined in:

marten/routing/path/spec/translated.cr

Constructors

Instance Method Summary

Instance methods inherited from class Marten::Routing::Path::Spec::Base

resolve(path : String) : Path::Match | Nil resolve, reverser(name : String) : Reverser reverser

Constructor Detail

def self.new(translated_path : TranslatedPath, regex_suffix : String | Nil = nil) #

[View source]

Instance Method Detail

def resolve(path : String) : Path::Match | Nil #
Description copied from class Marten::Routing::Path::Spec::Base

Resolves the path against the path specification.


[View source]
def reverser(name : String) : Reverser #
Description copied from class Marten::Routing::Path::Spec::Base

Returns a reverser for the path specification.


[View source]