Class: Pacer::Pipes::NakedPipe

Inherits:
RubyPipe
  • Object
show all
Defined in:
lib/pacer/pipe/naked_pipe.rb

Instance Attribute Summary

Attributes inherited from RubyPipe

#starts

Instance Method Summary collapse

Methods inherited from RubyPipe

#enablePath, #reset, #setStarts

Instance Method Details

#getCurrentPathObject



4
5
6
# File 'lib/pacer/pipe/naked_pipe.rb', line 4

def getCurrentPath
  starts.getCurrentPath
end

#processNextStartObject



8
9
10
11
12
13
14
15
16
17
18
# File 'lib/pacer/pipe/naked_pipe.rb', line 8

def processNextStart
  e = starts.next
  e = e.element if e.respond_to? :element
  if e.respond_to? :raw_vertex
    e.raw_vertex
  elsif e.respond_to? :raw_edge
    e.raw_edge
  else
    e
  end
end