struct Athena::Routing::CompiledRoute
- Athena::Routing::CompiledRoute
- Struct
- Value
- Object
Overview
Represents an immutable snapshot of an ART::Route
that exposes the Regex
patterns and variables used to match/generate the route.
Defined in:
compiled_route.crConstructors
Instance Method Summary
-
#clone
Returns a copy of
self
with all instance variables cloned. -
#host_regex : Regex | Nil
Returns the regex pattern used to match the hostname of this route.
-
#host_tokens : Array(ART::CompiledRoute::Token)
Returns the tokens that make up the hostname of this route.
-
#host_variables : Set(String)
Returns the names of the route parameters within the hostname pattern this route.
-
#path_variables : Set(String)
Returns the names of the route parameters within this route.
-
#regex : Regex
Returns the regex pattern used to match this route.
-
#static_prefix : String
Returns the static text prefix of this route.
-
#tokens : Array(ART::CompiledRoute::Token)
Returns the tokens that make up the path of this route.
-
#variables : Set(String)
Returns the compiled parameter names from the path and hostname patterns.
Constructor Detail
Instance Method Detail
Returns the regex pattern used to match the hostname of this route.
Returns the tokens that make up the hostname of this route.
Returns the names of the route parameters within the hostname pattern this route.
Returns the tokens that make up the path of this route.
Returns the compiled parameter names from the path and hostname patterns.