summaryrefslogtreecommitdiff
path: root/code/snippets/pipe_direction.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/snippets/pipe_direction.rb')
-rw-r--r--code/snippets/pipe_direction.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/code/snippets/pipe_direction.rb b/code/snippets/pipe_direction.rb
new file mode 100644
index 0000000..2a81c11
--- /dev/null
+++ b/code/snippets/pipe_direction.rb
@@ -0,0 +1,2 @@
+reader, writer = IO.pipe
+reader.write("Trying to get the reader to write something")