Class: Dry::Validation::ProcessInput
- Inherits:
-
Object
- Object
- Dry::Validation::ProcessInput
- Defined in:
- lib/dry/validation/executor.rb
Instance Attribute Summary collapse
-
#processor ⇒ Object
readonly
Returns the value of attribute processor.
Instance Method Summary collapse
- #call(input) ⇒ Object
-
#initialize(processor) ⇒ ProcessInput
constructor
A new instance of ProcessInput.
Constructor Details
permalink #initialize(processor) ⇒ ProcessInput
Returns a new instance of ProcessInput.
6 7 8 |
# File 'lib/dry/validation/executor.rb', line 6 def initialize(processor) @processor = processor end |
Instance Attribute Details
permalink #processor ⇒ Object (readonly)
Returns the value of attribute processor.
4 5 6 |
# File 'lib/dry/validation/executor.rb', line 4 def processor @processor end |
Instance Method Details
permalink #call(input) ⇒ Object
[View source]
10 11 12 |
# File 'lib/dry/validation/executor.rb', line 10 def call(input, *) processor.(input) end |