Sha256: 2c789792b04299ccdef3befbaef930c1b4fd924e5eacd08b78e7b45e7ba843a6

Contents?: true

Size: 277 Bytes

Versions: 26

Compression:

Stored size: 277 Bytes

Contents

module Pacer::Pipes
  class LabelPrefixPipe < RubyPipe
    def initialize(prefix)
      super()
      @prefix = /^#{prefix}/
    end

    def processNextStart
      while true
        edge = @starts.next
        return edge if edge.label =~ @prefix
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
pacer-2.0.10-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-2.0.10.pre-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-2.0.8-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-2.0.6-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-2.0.4.pre-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-2.0.0.pre-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.6.0-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.5.4-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.5.3-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.5.2-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.5.1-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.4.2-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.4.1-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.4.0-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.3.5-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.3.4-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.3.3-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.3.2-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.3.1-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.2.0-java lib/pacer/pipe/label_prefix_pipe.rb