Module: Dry::Validation::Macros::Registrar
- Included in:
- Dry::Validation, Contract::ClassInterface
- Defined in:
- lib/dry/validation/macros.rb
Instance Method Summary collapse
-
#register_macro(name, *args, &block) ⇒ self
Register a macro.
Instance Method Details
#register_macro(name, *args, &block) ⇒ self
Register a macro
32 33 34 35 |
# File 'lib/dry/validation/macros.rb', line 32 def register_macro(name, *args, &block) macros.register(name, *args, &block) self end |