Class: GoodData::Bricks::Pipeline
- Inherits:
-
Object
- Object
- GoodData::Bricks::Pipeline
- Defined in:
- lib/gooddata/bricks/pipeline.rb
Class Method Summary collapse
-
.prepare(pipeline) ⇒ Object
Pipeline preparation code.
Class Method Details
.prepare(pipeline) ⇒ Object
Pipeline preparation code
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/gooddata/bricks/pipeline.rb', line 11 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 |