Sha256: 0dd3c54d0e77eec2049e9860b1d88d1682c8d12e9d2b4bfc22edc84044bfa13c

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

# frozen_string_literal: true

module Kanal
  module Core
    module Helpers
      #
      # Objects of this class are constructed by router to be put into #router.input_output_pair_queue
      # It is needed so we don't keep input directly in output as a parameter
      # Upon queueing these objects processed in item_added hook, for which input might be needed
      #
      class InputOutputPair
        attr_reader :input, :output

        def initialize(input, output)
          @input = input
          @output = output
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kanal-0.8.0 lib/kanal/core/helpers/input_output_pair.rb
kanal-0.7.0 lib/kanal/core/helpers/input_output_pair.rb
kanal-0.6.0 lib/kanal/core/helpers/input_output_pair.rb
kanal-0.5.1 lib/kanal/core/helpers/input_output_pair.rb
kanal-0.5.0 lib/kanal/core/helpers/input_output_pair.rb