Sha256: 1dda0e13e25f50ed1c3aafb1e8dfe5475780030a5290f1484149ace0f459e073
Contents?: true
Size: 678 Bytes
Versions: 4
Compression:
Stored size: 678 Bytes
Contents
# encoding: UTF-8 # frozen_string_literal: true # # Copyright (c) 2010-2022 GoodData Corporation. All rights reserved. # This source code is licensed under the BSD-style license found in the # LICENSE file in the root directory of this source tree. module GoodData module Bricks class BasePipeline # Pipeline preparation code def self.prepare(pipeline) pipeline.reverse.reduce(nil) do |memo, app| if memo.nil? app.respond_to?(:new) ? app.new : app elsif app.respond_to?(:new) app.new(app: memo) else app.app = memo app end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems