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

Overview

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.

Defined in:

marten/routing/path/spec/static.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(regex : Regex, path_for_interpolation : String, parameters : Hash(String, Parameter::Base)) #

[View source]

Instance Method Detail

def parameters : Hash(String, Marten::Routing::Parameter::Base) #

[View source]
def path_for_interpolation : String #

[View source]
def regex : Regex #

[View source]
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]