Sha256: db710288e6e7637419abf2fcc667a1d3f9be7e404b3babeecdc3ce05722de917
Contents?: true
Size: 533 Bytes
Versions: 57
Compression:
Stored size: 533 Bytes
Contents
require_relative 'expand_condition/list' require_relative 'expand_condition/sequence' module Gitlab module Triage module ExpandCondition PIPELINE = [ List, Sequence ].freeze def self.perform(conditions, pipeline = PIPELINE, &block) expand([conditions], pipeline).each(&block) end def self.expand(conditions, pipeline = PIPELINE) pipeline.inject(conditions) do |result, job| result.flat_map(&job.method(:expand)) end end end end end
Version data entries
57 entries across 57 versions & 2 rubygems