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.crConstructors
Instance Method Summary
- #parameters : Hash(String, Marten::Routing::Parameter::Base)
- #path_for_interpolation : String
- #regex : Regex
-
#resolve(path : String) : Path::Match | Nil
Resolves the path against the path specification.
-
#reverser(name : String) : Reverser
Returns a reverser for the path specification.
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))
#
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.
Description copied from class Marten::Routing::Path::Spec::Base
Returns a reverser for the path specification.