module Athena::Routing::Generator::ConfigurableRequirementsInterface
Overview
Represents a URL generator that can be configured whether an exception should be generated when the parameters do not match the requirements.
Direct including types
Defined in:
generator/configurable_requirements_interface.crInstance Method Summary
-
#strict_requirements=(enabled : Bool | Nil)
Sets how invalid parameters should be treated:
-
#strict_requirements? : Bool | Nil
Returns the current strict requirements mode.
Instance Method Detail
abstract
def strict_requirements=(enabled : Bool | Nil)
#
Sets how invalid parameters should be treated:
true
- Raise an exception for mismatched requirements.false
- Do not raise an exception, but return an empty string.nil
- Disables checks, returning a URL with possibly invalid parameters.