class Athena::Routing::URLGenerator
- Athena::Routing::URLGenerator
- Reference
- Object
Overview
Default implementation of ART::URLGeneratorInterface
.
Included Modules
Defined in:
routing/url_generator.crConstructors
Instance Method Summary
Instance methods inherited from module Athena::Routing::URLGeneratorInterface
generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String
generate
Constructor Detail
Instance Method Detail
def generate(route : String, params : Hash(String, _) | Nil = nil, reference_type : ART::URLGeneratorInterface::ReferenceType = :absolute_path) : String
#
:inherit:
params are validated to ensure they are all provided, and meet any route constraints defined on the action.
OPTIMIZE Make URL generation more robust. ameba:disable Metrics/CyclomaticComplexity