struct Athena::Routing::CompiledRoute::Token
- Athena::Routing::CompiledRoute::Token
- Struct
- Value
- Object
Overview
An immutable representation of a segment of a route used to reconstruct a valid URL from an ART::CompiledRoute.
Defined in:
compiled_route.crConstructors
Instance Method Summary
-
#clone
Returns a copy of
selfwith all instance variables cloned. -
#important? : Bool
Returns
trueif this token should always be included within the generated URL, otherwisefalse. -
#prefix : String
Returns that static prefix related to this token.
-
#regex : Regex | Nil
Returns the pattern this
ART::CompiledRoute::Token::Type::VARIABLEtoken requires. -
#type : Type
Returns the type this token represents.
-
#var_name : String | Nil
Returns the name of parameter this
ART::CompiledRoute::Token::Type::VARIABLEtoken represents.
Constructor Detail
Instance Method Detail
Returns true if this token should always be included within the generated URL, otherwise false.
Returns the pattern this ART::CompiledRoute::Token::Type::VARIABLE token requires.
Returns the name of parameter this ART::CompiledRoute::Token::Type::VARIABLE token represents.