Class: Smith::Workflow::Composite::OutcomeAccumulator

Inherits:
Object
  • Object
show all
Extended by:
Dry::Initializer
Defined in:
lib/smith/workflow/composite/outcome_accumulator.rb

Instance Method Summary collapse

Instance Method Details

#callObject



23
24
25
26
27
28
# File 'lib/smith/workflow/composite/outcome_accumulator.rb', line 23

def call
  validate_array_count!
  initialize_accumulators
  each_outcome { insert!(_1) }
  complete_outcome_set
end