Class: Plumb::Pipeline::AroundStep
- Inherits:
-
Object
- Object
- Plumb::Pipeline::AroundStep
- Includes:
- Composable
- Defined in:
- lib/plumb/pipeline.rb
Instance Method Summary collapse
- #call(result) ⇒ Object
-
#initialize(step, block) ⇒ AroundStep
constructor
A new instance of AroundStep.
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
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 |