Sha256: 74a143c14b5e9e44b7696da7248477ef633cea056e9a9015f3f9847586adadde

Contents?: true

Size: 293 Bytes

Versions: 6

Compression:

Stored size: 293 Bytes

Contents

module MultiProcess
  # Receiver implementation storing process output
  # in string.
  #
  class StringReceiver < Receiver
    def received(_process, name, message)
      get(name) << message
    end

    def get(name)
      @strings ||= {}
      @strings[name.to_s] ||= ''
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
multi_process-1.1.1 lib/multi_process/string_receiver.rb
multi_process-1.1.0 lib/multi_process/string_receiver.rb
multi_process-1.0.0 lib/multi_process/string_receiver.rb
multi_process-0.5.2 lib/multi_process/string_receiver.rb
multi_process-0.5.1 lib/multi_process/string_receiver.rb
multi_process-0.5.0 lib/multi_process/string_receiver.rb