Sha256: 4e2e954c2c3492a026d98fa4f00a07f746b2e846a77fcfee96cf7a5c8d434856

Contents?: true

Size: 235 Bytes

Versions: 31

Compression:

Stored size: 235 Bytes

Contents

# frozen_string_literal: true

require 'bundler/setup'
require 'polyphony'

i, o = IO.pipe

puts 'Say something:'
spin do
  loop { o << STDIN.gets }
  o.close
end

while (data = i.readpartial(8192))
  STDOUT << "You said: #{data}"
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
polyphony-0.45.0 examples/io/xx-echo_pipe.rb
polyphony-0.44.0 examples/io/xx-echo_pipe.rb
polyphony-0.43.11 examples/io/xx-echo_pipe.rb
polyphony-0.43.10 examples/io/xx-echo_pipe.rb
polyphony-0.43.9 examples/io/xx-echo_pipe.rb
polyphony-0.43.8 examples/io/xx-echo_pipe.rb
polyphony-0.43.6 examples/io/xx-echo_pipe.rb
polyphony-0.43.5 examples/io/xx-echo_pipe.rb
polyphony-0.43.4 examples/io/xx-echo_pipe.rb
polyphony-0.43.3 examples/io/xx-echo_pipe.rb
polyphony-0.43.2 examples/io/xx-echo_pipe.rb
polyphony-0.43.1 examples/io/xx-echo_pipe.rb
polyphony-0.43 examples/io/xx-echo_pipe.rb
polyphony-0.42 examples/io/xx-echo_pipe.rb
polyphony-0.41 examples/io/xx-echo_pipe.rb
polyphony-0.40 examples/io/xx-echo_pipe.rb
polyphony-0.39 examples/io/xx-echo_pipe.rb
polyphony-0.38 examples/io/xx-echo_pipe.rb
polyphony-0.36 examples/io/xx-echo_pipe.rb
polyphony-0.34 examples/io/xx-echo_pipe.rb