module LightService::Organizer::ScopedReducable

Public Instance Methods

scoped_reduce(organizer, ctx, steps) click to toggle source
# File lib/light-service/organizer/scoped_reducable.rb, line 4
def scoped_reduce(organizer, ctx, steps)
  ctx.reset_skip_remaining! unless ctx.failure?
  ctx = organizer.with(ctx).reduce([steps])
  ctx.reset_skip_remaining! unless ctx.failure?

  ctx
end