Class: FunctionalLightService::Organizer::Execute

Inherits:
Object
  • Object
show all
Defined in:
lib/functional-light-service/organizer/execute.rb

Class Method Summary collapse

Class Method Details

.run(code_block) ⇒ Object



4
5
6
7
8
9
10
11
# File 'lib/functional-light-service/organizer/execute.rb', line 4

def self.run(code_block)
  ->(ctx) do
    return ctx if ctx.stop_processing?

    code_block.call(ctx)
    ctx
  end
end