Class: Flows::SharedContextPipeline::MutationStep Private
- Defined in:
- lib/flows/shared_context_pipeline/mutation_step.rb
Overview
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.
Constant Summary collapse
- NODE_PREPROCESSOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
lambda do |_input, context, | context[:class].before_each_callbacks.each do |callback| context[:instance].instance_exec(context[:class], [:name], context[:data], context[:meta], &callback) end [[context[:data]], EMPTY_HASH] end
- NODE_POSTPROCESSOR =
This constant is part of a private API. You should avoid using this constant if possible, as it may be removed or be changed in the future.
lambda do |output, context, | case output when Flows::Result then output else output ? EMPTY_OK : EMPTY_ERR end.tap do |result| context[:class].after_each_callbacks.each do |callback| context[:instance] .instance_exec(context[:class], [:name], result, context[:data], context[:meta], &callback) end end end
Instance Attribute Summary
Attributes inherited from Step
#body, #name, #next_step, #router_def
Method Summary
Methods inherited from Step
Constructor Details
This class inherits a constructor from Flows::SharedContextPipeline::Step