Module: Kernel
- Defined in:
- lib/erlectricity/receiver.rb
Instance Method Summary collapse
Instance Method Details
#receive(input = nil, output = nil, &block) ⇒ Object
64 65 66 67 68 |
# File 'lib/erlectricity/receiver.rb', line 64 def receive(input = nil, output = nil, &block) input ||= IO.new(3) output ||= IO.new(4) Erlectricity::Receiver.new(Erlectricity::Port.new(input, output), nil, &block).run end |