class LightService::Organizer::ReduceIf
Public Class Methods
Source
# File lib/light-service/organizer/reduce_if.rb, line 6 def self.run(organizer, condition_block, steps) lambda do |ctx| return ctx if ctx.stop_processing? ctx = scoped_reduce(organizer, ctx, steps) \ if condition_block.call(ctx) ctx end end