Method: ROM::Pipeline#map_with

Defined in:
lib/rom/pipeline.rb

#map_with(*names) ⇒ Relation::Composite

Send data through specified mappers



39
40
41
42
# File 'lib/rom/pipeline.rb', line 39

def map_with(*names)
  [self, *names.map { |name| mappers[name] }]
    .reduce { |a, e| composite_class.new(a, e) }
end