Class: Gooddata::Bricks::Pipeline

Inherits:
Object
  • Object
show all
Defined in:
lib/gooddata/bricks/brick.rb

Class Method Summary collapse

Class Method Details

.prepare(pipeline) ⇒ Object



5
6
7
# File 'lib/gooddata/bricks/brick.rb', line 5

def self.prepare(pipeline)
  pipeline.reverse.reduce(nil) {|memo, app| memo.nil? ? app.new : app.new(memo)}
end