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-1.1.1-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.1.0-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.0.3-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.0.2-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.0.1-java lib/pacer/pipe/label_prefix_pipe.rb
pacer-1.0.0-java lib/pacer/pipe/label_prefix_pipe.rb