summaryrefslogtreecommitdiff
path: root/code/snippets/standard_streams.rb
diff options
context:
space:
mode:
Diffstat (limited to 'code/snippets/standard_streams.rb')
-rw-r--r--code/snippets/standard_streams.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/code/snippets/standard_streams.rb b/code/snippets/standard_streams.rb
new file mode 100644
index 0000000..9f24fd3
--- /dev/null
+++ b/code/snippets/standard_streams.rb
@@ -0,0 +1,3 @@
+puts STDIN.fileno
+puts STDOUT.fileno
+puts STDERR.fileno