summaryrefslogtreecommitdiff
path: root/code/snippets/pipe.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/snippets/pipe.rb')
-rw-r--r--code/snippets/pipe.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/code/snippets/pipe.rb b/code/snippets/pipe.rb
new file mode 100644
index 0000000..f62a237
--- /dev/null
+++ b/code/snippets/pipe.rb
@@ -0,0 +1,2 @@
+reader, writer = IO.pipe #=> [#<IO:fd 5>, #<IO:fd 6>]
+