Sha256: a900cda9d78840bc3fc2445bc035234fc1fd98f55334e994aa1d32ebe5b6077f

Contents?: true

Size: 536 Bytes

Versions: 1

Compression:

Stored size: 536 Bytes

Contents

module Pacer::Pipes
  class VariableStoreIteratorWrapper < AbstractPipe

    field_reader :starts
    attr_accessor :vars

    def initialize(pipe, vars, variable_name)
      super()
      setStarts pipe if pipe
      @vars = vars
      @variable_name = variable_name
    end

    protected

    def processNextStart
      @vars[@variable_name] = starts.next
    rescue NativeException => e
      if e.cause.getClass == Pacer::NoSuchElementException.getClass
        raise e.cause
      else
        raise e
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pacer-0.9.1.1-java lib/pacer/pipe/variable_store_iterator_wrapper.rb