Module: Representable::Pipeline::Macros

Included in:
Representable::Pipeline
Defined in:
lib/representable/pipeline.rb

Overview

TODO: explicit test.

Instance Method Summary collapse

Instance Method Details

#insert(functions, new_function, options) ⇒ Object

Macro to quickly modify an array of functions via Pipeline::Insert and return a Pipeline instance.



26
27
28
# File 'lib/representable/pipeline.rb', line 26

def insert(functions, new_function, options)
  Pipeline.new(Pipeline::Insert.(functions, new_function, options))
end