Method: Mementus::Pipeline::Step#out_e

Defined in:
lib/mementus/pipeline/step.rb

#out_e(match = nil) ⇒ Object

Traverse to the outgoing edges from the source elements.



79
80
81
82
83
84
85
# File 'lib/mementus/pipeline/step.rb', line 79

def out_e(match=nil)
  outgoing_edges = source.inject([]) do |result, node|
    result.concat(graph.outgoing_edges(node.id, match))
  end

  Step.new(outgoing_edges, Pipe.new(graph), graph)
end