Class: Pacer::Pipes::TypeFilterPipe
- Inherits:
-
RubyPipe
- Object
- AbstractPipe
- RubyPipe
- Pacer::Pipes::TypeFilterPipe
- Defined in:
- lib/pacer/pipe/type_filter_pipe.rb
Instance Attribute Summary
Attributes inherited from RubyPipe
Instance Method Summary (collapse)
-
- (TypeFilterPipe) initialize(type)
constructor
A new instance of TypeFilterPipe.
- - (Object) processNextStart
Methods inherited from RubyPipe
Constructor Details
- (TypeFilterPipe) initialize(type)
A new instance of TypeFilterPipe
3 4 5 6 |
# File 'lib/pacer/pipe/type_filter_pipe.rb', line 3 def initialize(type) super() @type = type end |
Instance Method Details
- (Object) processNextStart
8 9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/pacer/pipe/type_filter_pipe.rb', line 8 def processNextStart() while @starts.hasNext s = @starts.next return s if s.is_a? @type end raise Pacer::NoSuchElementException rescue NativeException => e if e.cause.getClass == Pacer::NoSuchElementException.getClass raise e.cause else raise e end end |