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.cr

Instance Method Summary

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.

[View source]
abstract def strict_requirements? : Bool | Nil #

Returns the current strict requirements mode.


[View source]