Class: Dry::Validation::Rust::Macro Private
- Inherits:
-
Struct
- Object
- Struct
- Dry::Validation::Rust::Macro
- Defined in:
- lib/dry/validation/rust/macros.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary collapse
-
#args ⇒ Object
Returns the value of attribute args.
-
#block ⇒ Object
Returns the value of attribute block.
-
#keyword_params ⇒ Object
Returns the value of attribute keyword_params.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
- #with(call_args) ⇒ Object private
Instance Attribute Details
#args ⇒ Object
Returns the value of attribute args
9 10 11 |
# File 'lib/dry/validation/rust/macros.rb', line 9 def args @args end |
#block ⇒ Object
Returns the value of attribute block
9 10 11 |
# File 'lib/dry/validation/rust/macros.rb', line 9 def block @block end |
#keyword_params ⇒ Object
Returns the value of attribute keyword_params
9 10 11 |
# File 'lib/dry/validation/rust/macros.rb', line 9 def keyword_params @keyword_params end |
#name ⇒ Object
Returns the value of attribute name
9 10 11 |
# File 'lib/dry/validation/rust/macros.rb', line 9 def name @name end |
Instance Method Details
#with(call_args) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
10 11 12 |
# File 'lib/dry/validation/rust/macros.rb', line 10 def with(call_args) self.class.new(name: name, args: args + call_args, block: block, keyword_params: keyword_params) end |