Class: LightService::Organizer::Execute
- Inherits:
-
Object
- Object
- LightService::Organizer::Execute
- Defined in:
- lib/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/light-service/organizer/execute.rb', line 4 def self.run(code_block) lambda do |ctx| return ctx if ctx.stop_processing? code_block.call(ctx) ctx end end |