Class: Dry::Validation::Rust::Macro Private

Inherits:
Struct
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#argsObject

Returns the value of attribute args

Returns:

  • (Object)

    the current value of args



9
10
11
# File 'lib/dry/validation/rust/macros.rb', line 9

def args
  @args
end

#blockObject

Returns the value of attribute block

Returns:

  • (Object)

    the current value of block



9
10
11
# File 'lib/dry/validation/rust/macros.rb', line 9

def block
  @block
end

#keyword_paramsObject

Returns the value of attribute keyword_params

Returns:

  • (Object)

    the current value of keyword_params



9
10
11
# File 'lib/dry/validation/rust/macros.rb', line 9

def keyword_params
  @keyword_params
end

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of 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