[#1551] Hashes as keys — "Nathaniel Talbott" <nathaniel@...>

I was just playing around with Hash#hash and discovered that you can't use a

13 messages 2003/09/23

PATCH: open3.rb comments misleading

From: Jason Creighton <androflux@...>
Date: 2003-09-15 16:31:26 UTC
List: ruby-core #1529
Hello,
I found the comments in open3.rb misleading because it uses "in", which
is a Ruby keyword, incorrectly, causing the examples to fail to parse.
Here is a patch which "fixes" this little "problem", and also adds a
note of explaination:

--- open3.rb.orig       2002-01-28 23:29:52.000000000 -0700
+++ open3.rb    2003-09-14 20:47:30.000000000 -0600
@@ -1,11 +1,14 @@
+# open3.rb: Spawn a program like popen, but with stderr, too. You might also
+# want to use this if you want to bypass the shell. (By passing multiple args,
+# with IO#popen does not allow)
+#
 # Usage:
 #      require "open3"
 #
-#      in, out, err = Open3.popen3('nroff -man')
+#      stdin, stdout, stderr = Open3.popen3('nroff -man')
 #  or
 #      include Open3
-#      in, out, err = popen3('nroff -man')
-#
+#      stdin, stdout, stderr = popen3('nroff -man')

Jason Creighton

In This Thread

Prev Next