module Dry::Validation::Macros::Registrar
def register_macro(...)
- Api: - public
Other tags:
- See: Macro -
Returns:
-
(self)
-
Parameters:
-
args
(Array
) -- Optional default positional arguments for the macro -
name
(Symbol
) -- The name of the macro
Other tags:
- Example: register a contract macro -
Example: register a global macro -
def register_macro(...) macros.register(...) self end