Skip to content

module Athena::Routing::Generator::ConfigurableRequirementsInterface #

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

Athena::Routing::Generator::URLGenerator

Methods#

abstract #strict_requirements=(enabled : Bool?) #

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 #strict_requirements? #

Returns the current strict requirements mode.

View source