Class: Pacer::Pipes::CrossProductTransformPipe
- Inherits:
-
UnaryTransformPipe
- Object
- AbstractPipe
- RubyPipe
- UnaryTransformPipe
- Pacer::Pipes::CrossProductTransformPipe
- Defined in:
- lib/pacer/pipe/cross_product_transform_pipe.rb
Instance Attribute Summary collapse
-
#branch_b ⇒ Object
readonly
Returns the value of attribute branch_b.
Attributes inherited from UnaryTransformPipe
Attributes inherited from RubyPipe
Instance Method Summary collapse
-
#initialize(method, branch_a, branch_b) ⇒ CrossProductTransformPipe
constructor
A new instance of CrossProductTransformPipe.
- #processNextStart ⇒ Object
Methods inherited from RubyPipe
#enablePath, #reset, #setStarts
Constructor Details
#initialize(method, branch_a, branch_b) ⇒ CrossProductTransformPipe
Returns a new instance of CrossProductTransformPipe.
5 6 7 8 9 10 11 12 13 |
# File 'lib/pacer/pipe/cross_product_transform_pipe.rb', line 5 def initialize(method, branch_a, branch_b) super(method, branch_a) if branch_b.is_a? Pipe @branch_b = branch_b @b = nil else @b = branch_b end end |
Instance Attribute Details
#branch_b ⇒ Object (readonly)
Returns the value of attribute branch_b.
3 4 5 |
# File 'lib/pacer/pipe/cross_product_transform_pipe.rb', line 3 def branch_b @branch_b end |
Instance Method Details
#processNextStart ⇒ Object
15 16 17 18 |
# File 'lib/pacer/pipe/cross_product_transform_pipe.rb', line 15 def processNextStart next_pair a.send method, b rescue nil if a.respond_to? method end |