Class: MultiProcess::StringReceiver
- Defined in:
- lib/multi_process/string_receiver.rb
Overview
Receiver implementation storing process output in string.
Instance Method Summary collapse
Methods inherited from Receiver
Instance Method Details
#get(name) ⇒ Object
12 13 14 15 |
# File 'lib/multi_process/string_receiver.rb', line 12 def get(name) @strings ||= {} @strings[name.to_s] ||= +'' end |
#received(_process, name, message) ⇒ Object
8 9 10 |
# File 'lib/multi_process/string_receiver.rb', line 8 def received(_process, name, ) get(name) << end |