Module: CMDx::Mergers::DeepMerge Private

Extended by:
DeepMerge
Included in:
DeepMerge
Defined in:
lib/cmdx/mergers/deep_merge.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Recursively merges ‘Hash` values from the parallel task’s context into the workflow context. Scalar-vs-hash collisions still follow last-write-wins.

Instance Method Summary collapse

Instance Method Details

#call(ctx, result) ⇒ void

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.

This method returns an undefined value.

Parameters:

  • ctx (Context)

    workflow context being folded into

  • result (Result)

    successful parallel task result



17
18
19
# File 'lib/cmdx/mergers/deep_merge.rb', line 17

def call(ctx, result)
  ctx.deep_merge(result.context)
end