Module: Pacer::Filter::JavaLoopFilter
- Defined in:
- lib/pacer/filter/java_loop_filter.rb
Defined Under Namespace
Classes: LoopBundleWrapper, LoopPipeFunction
Instance Attribute Summary collapse
-
#include_self ⇒ Object
Returns the value of attribute include_self.
-
#looping_route ⇒ Object
Returns the value of attribute looping_route.
Instance Method Summary collapse
Instance Attribute Details
#include_self ⇒ Object
Returns the value of attribute include_self.
27 28 29 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 27 def include_self @include_self end |
#looping_route ⇒ Object
Returns the value of attribute looping_route.
26 27 28 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 26 def looping_route @looping_route end |
Instance Method Details
#emit(always = false, &block) ⇒ Object
37 38 39 40 41 42 43 44 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 37 def emit(always = false, &block) if always @emit_fn = proc { true } else @emit_fn = LoopPipeFunction.new graph, element_wrapper, block end self end |
#loop(always = false, &block) ⇒ Object
46 47 48 49 50 51 52 53 |
# File 'lib/pacer/filter/java_loop_filter.rb', line 46 def loop(always = false, &block) if always @loop_fn = proc { true } else @loop_fn = LoopPipeFunction.new graph, element_wrapper, block end self end |