Class: Plumb::Pipeline::AroundStep

Inherits:
Object
  • Object
show all
Includes:
Composable
Defined in:
lib/plumb/pipeline.rb

Instance Method Summary collapse

Methods included from Composable

#>>, #[], #as_node, #build, #check, #children, #defer, #generate, included, #invalid, #invoke, #match, #metadata, #not, #pipeline, #policy, #static, #to_json_schema, #to_s, #transform, #value, wrap, #|

Methods included from Callable

#parse, #resolve

Constructor Details

#initialize(step, block) ⇒ AroundStep

Returns a new instance of AroundStep.



12
13
14
15
# File 'lib/plumb/pipeline.rb', line 12

def initialize(step, block)
  @step = step
  @block = block
end

Instance Method Details

#call(result) ⇒ Object



17
18
19
# File 'lib/plumb/pipeline.rb', line 17

def call(result)
  @block.call(@step, result)
end