Skip to content

Commit

Permalink
Move configure_iterator to PathRoute
Browse files Browse the repository at this point in the history
  • Loading branch information
Darrick Wiebe committed Sep 28, 2012
1 parent 10d3c8a commit 8aa11cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
12 changes: 12 additions & 0 deletions lib/pacer/core/graph/path_route.rb
Expand Up @@ -28,5 +28,17 @@ def subgraph(target_graph = nil, opts = {})
end
target_graph
end

protected

def configure_iterator(iter)
if respond_to? :graph
pipe = Pacer::Pipes::PathWrappingPipe.new(graph)
pipe.setStarts iter
pipe
else
iter
end
end
end
end
10 changes: 0 additions & 10 deletions lib/pacer/transform/path.rb
Expand Up @@ -26,16 +26,6 @@ def attach_pipe(end_pipe)
pipe.setStarts end_pipe if end_pipe
pipe
end

def configure_iterator(iter)
if respond_to? :graph
pipe = Pacer::Pipes::PathWrappingPipe.new(graph)
pipe.setStarts iter
pipe
else
iter
end
end
end
end
end

0 comments on commit 8aa11cd

Please sign in to comment.