Module: Trailblazer::Operation::Wrap

Defined in:
lib/trailblazer/operation/wrap.rb

Class Method Summary collapse

Class Method Details

.for(wrap, pipe) ⇒ Object



16
17
18
# File 'lib/trailblazer/operation/wrap.rb', line 16

def self.for(wrap, pipe)
  ->(input, options) { wrap.(options, input, pipe, & ->{ pipe.(input, options) }) }
end