Sha256: 822c5f3ba8ef5683c4e65f120a185fd8922c6ea56f489f83714d6a5e2a125d00
Contents?: true
Size: 644 Bytes
Versions: 13
Compression:
Stored size: 644 Bytes
Contents
# encoding: UTF-8 # # Copyright (c) 2010-2017 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 Pipeline # 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
13 entries across 13 versions & 1 rubygems