Class: Pacer::Pipes::ProcessPipe

Inherits:
AbstractPipe
  • Object
show all
Defined in:
lib/pacer/pipe/process_pipe.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(back, block) ⇒ ProcessPipe

Returns a new instance of ProcessPipe.



6
7
8
9
# File 'lib/pacer/pipe/process_pipe.rb', line 6

def initialize(back, block)
  super()
  @block = Pacer::Wrappers::WrappingPipeFunction.new back, block
end

Instance Attribute Details

#backObject (readonly)

Returns the value of attribute back.



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

def back
  @back
end

#blockObject (readonly)

Returns the value of attribute block.



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

def block
  @block
end

#extensionsObject (readonly)

Returns the value of attribute extensions.



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

def extensions
  @extensions
end

#graphObject (readonly)

Returns the value of attribute graph.



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

def graph
  @graph
end

#is_elementObject (readonly)

Returns the value of attribute is_element.



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

def is_element
  @is_element
end

Instance Method Details

#processNextStartObject



11
12
13
14
15
16
17
# File 'lib/pacer/pipe/process_pipe.rb', line 11

def processNextStart
  while true
    obj = starts.next
    block.call(obj)
    return obj
  end
end