Class: Dry::Validation::Macros::Container
- Inherits:
-
Object
- Object
- Dry::Validation::Macros::Container
- Includes:
- Core::Container::Mixin
- Defined in:
- lib/dry/validation/macros.rb
Overview
Registry for macros
Instance Method Summary collapse
-
#register(name, *args, &block) ⇒ self
Register a new macro.
Instance Method Details
#register(name, *args, &block) ⇒ self
Register a new macro
58 59 60 61 62 |
# File 'lib/dry/validation/macros.rb', line 58 def register(name, *args, &block) macro = Macro.new(name, args: args, block: block) super(name, macro, call: false, &nil) self end |