Class: Pacer::Pipes::ProcessPipe
- Inherits:
-
AbstractPipe
- Object
- AbstractPipe
- Pacer::Pipes::ProcessPipe
- Defined in:
- lib/pacer/pipe/process_pipe.rb
Instance Attribute Summary collapse
-
#back ⇒ Object
readonly
Returns the value of attribute back.
-
#block ⇒ Object
readonly
Returns the value of attribute block.
-
#extensions ⇒ Object
readonly
Returns the value of attribute extensions.
-
#graph ⇒ Object
readonly
Returns the value of attribute graph.
-
#is_element ⇒ Object
readonly
Returns the value of attribute is_element.
Instance Method Summary collapse
-
#initialize(back, block) ⇒ ProcessPipe
constructor
A new instance of ProcessPipe.
- #processNextStart ⇒ Object
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
#back ⇒ Object (readonly)
Returns the value of attribute back.
4 5 6 |
# File 'lib/pacer/pipe/process_pipe.rb', line 4 def back @back end |
#block ⇒ Object (readonly)
Returns the value of attribute block.
4 5 6 |
# File 'lib/pacer/pipe/process_pipe.rb', line 4 def block @block end |
#extensions ⇒ Object (readonly)
Returns the value of attribute extensions.
4 5 6 |
# File 'lib/pacer/pipe/process_pipe.rb', line 4 def extensions @extensions end |
#graph ⇒ Object (readonly)
Returns the value of attribute graph.
4 5 6 |
# File 'lib/pacer/pipe/process_pipe.rb', line 4 def graph @graph end |
#is_element ⇒ Object (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
#processNextStart ⇒ Object
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 |